From: Julia Lawall Date: Fri, 19 Dec 2008 17:11:25 +0000 (+0100) Subject: Staging: go7007: Move a dereference below a NULL test X-Git-Tag: v2.6.30-rc1~202^2~544 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e847890acbee5db65430c1d4f8d7ac07813140;p=pandora-kernel.git Staging: go7007: Move a dereference below a NULL test In each case, 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/). The result has been modified to move the initialization of usb down closer to where it is used. // @@ 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed