From: Julia Lawall Date: Mon, 13 Jul 2009 20:43:41 +0000 (+0200) Subject: ataflop: adjust NULL test X-Git-Tag: v2.6.31-rc4~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f47428704c2fd6f787a6f340071b9c338b65803;p=pandora-kernel.git ataflop: adjust NULL test dtp is derefenced on the lines above the test !dtp, and so it cannot be NULL at this point. A simplified version of the semantic match that finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r@ expression x,E,E1; identifier f,l; position p1,p2; @@ *x@p1->f = E1; ... when != x = E when != goto l; ( *x@p2 == NULL | *x@p2 != NULL ) // Signed-off-by: Julia Lawall Signed-off-by: Tejun Heo --- Reading git-diff-tree failed