forked from Minki/linux
c81d497284
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> |
||
---|---|---|
.. | ||
cx25821-alsa.c | ||
cx25821-audio-upstream.c | ||
cx25821-audio-upstream.h | ||
cx25821-audio.h | ||
cx25821-biffuncs.h | ||
cx25821-cards.c | ||
cx25821-core.c | ||
cx25821-gpio.c | ||
cx25821-i2c.c | ||
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 | ||
cx25821-video-upstream-ch2.h | ||
cx25821-video-upstream.c | ||
cx25821-video-upstream.h | ||
cx25821-video.c | ||
cx25821-video.h | ||
cx25821.h | ||
Kconfig | ||
Makefile |