From: Julia Lawall Date: Sat, 11 Jul 2009 08:32:23 +0000 (+0200) Subject: Staging: otus: Drop an unnecessary NULL test X-Git-Tag: v2.6.32-rc1~668^2~578 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6785681be9f05435f4299b921c41397ea061a1;p=pandora-kernel.git Staging: otus: Drop an unnecessary NULL test Apparently, the NULL test is not necessary at this point. The semantic patch that finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ type T; expression E; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E when != i if (E == NULL) S + i = E->fld; // Signed-off-by: Julia Lawall Acked-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed