From: Julia Lawall Date: Sat, 4 Apr 2015 14:59:30 +0000 (+0200) Subject: staging: emxx_udc: test returned value X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~991 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd7de5cea225f85b218730eddf7476dd6260bafc;p=pandora-kernel.git staging: emxx_udc: test returned value Put NULL test on the result of the previous call instead on one of its arguments. A simplified version of the semantic match that finds this problem is as follows (http://coccinelle.lip6.fr/): // r@ expression *e1; expression *e2; identifier f; statement S1,S2; @@ e1 = f(...,e2,...); ( if (e1 == NULL || ...) S1 else S2 | *if (e2 == NULL || ...) S1 else S2 ) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed