linux_old1/drivers/media/platform/soc_camera
Peter Senna Tschudin ab99cb18ae [media] drivers/media/platform/soc_camera/soc_camera.c: fix error return code
Convert a nonnegative error return code to a negative one, as returned
elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
[g.liakhovetski@gmx.de: follow the soc_camera.c style: check "ret < 0"]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-06 09:20:32 -03:00
..
Kconfig
Makefile
atmel-isi.c
mx1_camera.c
mx2_camera.c [media] drivers/media/platform/soc_camera/mx2_camera.c: fix error return code 2012-10-06 09:18:10 -03:00
mx3_camera.c
omap1_camera.c
pxa_camera.c
sh_mobile_ceu_camera.c
sh_mobile_csi2.c
soc_camera.c [media] drivers/media/platform/soc_camera/soc_camera.c: fix error return code 2012-10-06 09:20:32 -03:00
soc_camera_platform.c
soc_mediabus.c