From: Julia Lawall Date: Sun, 19 Jul 2009 15:29:57 +0000 (+0200) Subject: USB: storage: Drop an unneeded a NULL test X-Git-Tag: v2.6.32-rc1~174^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64aebe73152ab3a9f5f426baaf65db632bd72c13;p=pandora-kernel.git USB: storage: Drop an unneeded a NULL test In each case, the NULL test is not necessary because the function is static and at the only places where it is called, the us argument has already been dereferenced. The semantic patch that finds the problem 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 Cc: Matthew Dharm Cc: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed