From: Julia Lawall Date: Tue, 3 Aug 2010 21:35:36 +0000 (+0000) Subject: IB/ehca: Drop unnecessary NULL test X-Git-Tag: v2.6.36-rc1~492^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db00321815e20f4a7ff9df43f7cf2073085683d;p=pandora-kernel.git IB/ehca: 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,S1,S2; @@ I(x,...) { <... - if (x == NULL && ...) S ...> } // Signed-off-by: Julia Lawall Acked-by: Alexander Schmidt Signed-off-by: Roland Dreier --- Reading git-diff-tree failed