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
videocodec.h
zoran_card.c
zoran_card.h
zoran_device.c
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
zr36016.c
zr36016.h
zr36050.c
zr36050.h
zr36057.h
zr36060.c
zr36060.h