Julia Lawall 3557aa4f7d V4L/DVB (13954): 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>
@r@
identifier f;
@@

f(...) { <+... return NULL; ...+> }

@@
expression *x;
expression y;
identifier r.f;
statement S;
@@

x = f(...);
(
if ((x) == NULL) S
|
if (
-   y
+   x
       == NULL)
 S
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-02-26 15:10:33 -03:00
..
2010-02-23 00:39:00 -05:00
2010-02-10 12:07:28 -07:00
2009-12-15 08:53:34 -08:00
2010-02-26 15:10:33 -03:00
2010-01-29 21:03:09 +01:00
2010-02-11 13:59:42 -08:00
2010-02-02 18:11:21 -08:00
2010-02-03 16:55:20 -05:00
2009-12-15 08:53:25 -08:00
2010-02-16 15:11:10 -08:00
2010-02-22 19:50:34 -08:00
2010-01-13 10:01:35 +00:00