linux/drivers/media/pci/cx25821
Peter Senna Tschudin c81d497284 [media] cx25821: fix error return code and clean up
The function cx25821_sram_channel_setup_upstream_audio always return zero,
so the return value is not saved any more.
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-11-22 16:46:34 -02:00
..
cx25821-alsa.c
cx25821-audio-upstream.c [media] cx25821: fix error return code and clean up 2012-11-22 16:46:34 -02:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-cards.c
cx25821-core.c
cx25821-gpio.c
cx25821-i2c.c [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h
cx25821-medusa-video.c
cx25821-medusa-video.h
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream-ch2.c [media] drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c: fix error return code 2012-11-22 15:39:11 -02:00
cx25821-video-upstream-ch2.h
cx25821-video-upstream.c [media] drivers/media/pci/cx25821/cx25821-video-upstream.c: fix error return code 2012-11-22 14:20:22 -02:00
cx25821-video-upstream.h
cx25821-video.c [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-video.h [media] v4l2: make vidioc_s_crop const 2012-09-26 11:02:25 -03:00
cx25821.h
Kconfig
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00