From: Julia Lawall Date: Tue, 3 Aug 2010 21:34:36 +0000 (+0200) Subject: staging: Drop unnecessary null test X-Git-Tag: v2.6.37-rc1~60^2~3^2~824 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d7fc5ce9f5985ce5230e336f104608835693a1;p=pandora-kernel.git staging: 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; statement S; @@ I(x,...) { <... - if (x != NULL || ...) S ...> } // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed