From: Julia Lawall Date: Sun, 27 Dec 2009 11:27:44 +0000 (+0000) Subject: drivers/net/can: Correct NULL test X-Git-Tag: v2.6.33-rc4~10^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce739b473ce12d5ef067b39b8637bfd2b2174a15;p=pandora-kernel.git drivers/net/can: Correct NULL test Test the just-allocated value for NULL rather than some other value. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,y; statement S; @@ x = \(kmalloc\|kcalloc\|kzalloc\)(...); ( if ((x) == NULL) S | if ( - y + x == NULL) S ) // Signed-off-by: Julia Lawall Acked-by: Oliver Hartkopp Signed-off-by: David S. Miller --- Reading git-diff-tree failed