linux/drivers/media/video/usbvision
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
..
Kconfig
Makefile
usbvision-cards.c
usbvision-cards.h
usbvision-core.c headers: utsname.h redux 2009-09-23 18:13:10 -07:00
usbvision-i2c.c V4L/DVB (13551): v4l: Remove video_device::num usage from device drivers 2009-12-16 00:17:55 -02:00
usbvision-video.c V4L/DVB (13954): Correct NULL test 2010-02-26 15:10:33 -03:00
usbvision.h V4L/DVB (11051): v4l-dvb: replace remaining references to the old mailinglist. 2009-03-30 12:43:23 -03:00