From: Julia Lawall Date: Sun, 19 Jul 2009 05:26:35 +0000 (+0000) Subject: drivers/net: Move a dereference below a NULL test X-Git-Tag: v2.6.31-rc4~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0376d5b25ef11e9b6450ebae20781a32d8985170;p=pandora-kernel.git drivers/net: Move a dereference below a NULL test If the NULL test is necessary, then the dereference should be moved below the NULL test. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ type T; expression E,E1; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E=E1 when != i if (E == NULL||...) S + i = E->fld; // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed