From: Julia Lawall Date: Tue, 3 Aug 2010 11:35:17 +0000 (+0000) Subject: powerpc/pci: Drop unnecessary null test X-Git-Tag: v2.6.36-rc3~37^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da9bef6735d3c5c1c0cd16717acee18d56dd59f5;p=pandora-kernel.git powerpc/pci: Drop unnecessary null test list_for_each_entry binds its first argument to a non-null value, and thus any null test on the value of that argument is superfluous. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iterator I; expression x,E,E1,E2; statement S,S1,S2; @@ I(x,...) { <... - if (x != NULL || ...) S ...> } // Signed-off-by: Julia Lawall Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed