linux_dsm_epyc7002/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 V4L/DVB (7846): Re-creates VIDEO_TUNER 2008-05-14 02:54:07 -03:00
Makefile V4L/DVB(7767): Move tuners to common/tuners 2008-04-29 18:41:37 -03:00
usbvision-cards.c V4L/DVB (6994): usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3 2008-01-25 19:04:46 -02:00
usbvision-cards.h V4L/DVB (6994): usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3 2008-01-25 19:04:46 -02:00
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