linux/drivers/media/radio/si4713
Julia Lawall 50f2468ea0 [media] si4713: fix error return code
Return a negative error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-01 07:00:31 -03:00
..
Kconfig
Makefile
radio-platform-si4713.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
radio-usb-si4713.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
si4713.c [media] si4713: fix error return code 2015-05-01 07:00:31 -03:00
si4713.h [media] si4713: add device tree support 2014-11-14 18:08:19 -02:00