summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2012-09-17 04:04:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-11-22 16:46:34 -0200
commitc81d497284f6009a856b399e70f812671fdc7fcf (patch)
treed3e2f08996f7c2682b26f7099c0df57cf68ff54e /scripts
parenteaddb09307494646650e7c7432739ade10bdf56c (diff)
downloadblackbird-op-linux-c81d497284f6009a856b399e70f812671fdc7fcf.tar.gz
blackbird-op-linux-c81d497284f6009a856b399e70f812671fdc7fcf.zip
[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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud