linux/drivers/media
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
..
common V4L/DVB: NXP TDA18218 silicon tuner driver 2010-10-21 01:04:42 -02:00
dvb V4L/DVB: af9015: add missing TDA18218 Kconfig option 2010-10-21 01:04:42 -02:00
IR V4L/DVB: IR/streamzap: functional in-kernel decoding 2010-10-21 01:04:47 -02:00
radio V4L/DVB: v4l: radio: si470x: fix unneeded free_irq() call 2010-09-30 07:22:41 -03:00
video V4L/DVB: drivers/media/video/zoran: Use available error codes 2010-10-21 01:04:48 -02:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00