Peter Senna Tschudin 8c96f0a207 [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>
2012-09-13 17:42:16 -03:00
..
2012-08-20 13:13:47 -07:00
2012-08-02 13:51:46 -04:00
2012-08-17 09:21:35 +02:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-07-30 09:32:39 -07:00
2012-08-24 11:25:10 -03:00
2012-08-16 20:24:38 +01:00
2012-08-13 14:34:02 +08:00
2012-08-20 13:14:22 -07:00
2012-08-12 21:31:44 +03:00
2012-07-09 16:42:24 -04:00
2012-08-20 11:58:43 +02:00
2012-08-20 13:05:27 -07:00
2012-08-24 11:25:10 -03:00
2012-08-20 13:14:22 -07:00
2012-07-24 16:17:07 -07:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00