Julia Lawall 7dad9ef6d9 drivers/gpu/drm/nouveau/nouveau_grctx.c: 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/)

// <smpl>
@@
expression x,y;
statement S;
@@

x = \(kmalloc\|kcalloc\|kzalloc\)(...);
(
if ((x) == NULL) S
|
if (
-   y
+   x
       == NULL)
 S
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: David Airlie <airlied@linux.ie>
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-02-09 12:49:55 +10:00
..
2009-11-19 18:18:17 -05:00
2009-12-01 16:32:20 -08:00
2009-11-04 14:04:06 +01:00
2009-12-01 16:32:19 -08:00
2009-12-01 11:24:19 +01:00
2009-11-26 09:22:33 +01:00
2009-11-16 16:13:35 +00:00
2009-10-15 09:58:27 -06:00
2009-11-12 07:26:01 -08:00