linux/drivers/media/video/zoran
Julia Lawall 46a7a3cc9f V4L/DVB: drivers/media/video/zoran: Use available error codes
Error codes are stored in res, but the return value is always 0.  Return
res instead.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
local idexpression x;
constant C;
@@

if (...) { ...
  x = -C
  ... when != x
(
  return <+...x...+>;
|
  return NULL;
|
  return;
|
* return ...;
)
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-10-21 01:04:48 -02:00
..
Kconfig V4L/DVB (10714): zoran et al: convert zoran i2c modules to V4L2. 2009-03-30 12:42:57 -03:00
Makefile
videocodec.c V4L/DVB: drivers/media/video/zoran: Use kmemdup 2010-08-02 15:04:04 -03:00
videocodec.h V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zoran.h fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
zoran_card.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
zoran_card.h V4L/DVB (10711): zoran: fix TRY_FMT support 2009-03-30 12:42:56 -03:00
zoran_device.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
zoran_device.h V4L/DVB (11022): zoran/bt819: use new notify functionality. 2009-03-30 12:43:21 -03:00
zoran_driver.c V4L/DVB: drivers/media/video/zoran: Use available error codes 2010-10-21 01:04:48 -02:00
zoran_procfs.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zoran_procfs.h
zr36016.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zr36016.h
zr36050.c fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
zr36050.h
zr36057.h
zr36060.c fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
zr36060.h