android_kernel_xiaomi_sm8350/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
Makefile
videocodec.c V4L/DVB: drivers/media/video/zoran: Use kmemdup 2010-08-02 15:04:04 -03:00
videocodec.h
zoran_card.c
zoran_card.h
zoran_device.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
zoran_device.h
zoran_driver.c V4L/DVB: drivers/media/video/zoran: Use available error codes 2010-10-21 01:04:48 -02:00
zoran_procfs.c
zoran_procfs.h
zoran.h fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
zr36016.c
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