summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/vicam.c
diff options
context:
space:
mode:
authorPeter Senna Tschudin2012-09-06 17:24:01 +0200
committerMauro Carvalho Chehab2012-09-13 22:42:16 +0200
commit8c96f0a207bedb6f06089fde9adc7abe8136a087 (patch)
tree0b1c629b9f196b27ac295d9f500c8cfe536950ef /drivers/media/usb/gspca/vicam.c
parent[media] gspca: dubious one-bit signed bitfield (diff)
downloadkernel-qcow2-linux-8c96f0a207bedb6f06089fde9adc7abe8136a087.tar.gz
kernel-qcow2-linux-8c96f0a207bedb6f06089fde9adc7abe8136a087.tar.xz
kernel-qcow2-linux-8c96f0a207bedb6f06089fde9adc7abe8136a087.zip
[media] drivers/media/usb/gspca/cpia1.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> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/gspca/vicam.c')
0 files changed, 0 insertions, 0 deletions