From: Julia Lawall Date: Tue, 22 Dec 2009 21:00:07 +0000 (-0300) Subject: V4L/DVB (13949): Move a dereference below a NULL test X-Git-Tag: v2.6.34-rc1~280^2~283 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21ead03bdde189106e0625baac170385a6c360af;p=pandora-kernel.git V4L/DVB (13949): 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; 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: Mauro Carvalho Chehab --- Reading git-diff-tree failed