linux/drivers/media
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
..
common saa7146: stop DMA before de-allocating DMA scatter/gather page buffers 2010-02-01 22:02:03 -02:00
dvb V4L/DVB (13953): firedtv: add missing NULL pointer check 2010-02-26 15:10:33 -03:00
IR V4L/DVB (13856): ir-keytable: simplify and avoid a warning 2010-02-26 15:10:26 -03:00
radio V4L/DVB (13948): radio: Correct use after free 2010-02-26 15:10:33 -03:00
video V4L/DVB (13954): Correct NULL test 2010-02-26 15:10:33 -03:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00