From: Julia Lawall Date: Sat, 6 Feb 2010 08:43:58 +0000 (-0300) Subject: V4L/DVB: drivers/media: Correct NULL test X-Git-Tag: v2.6.34-rc1~280^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62bdbb735c0415c2ffdddc2269a860a76f7f716a;p=pandora-kernel.git V4L/DVB: drivers/media: Correct NULL test In each case, the NULL test has been performed already. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed