Peter Senna Tschudin ba9b6f9f7a can: peak_pcmcia: 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: Marc Kleine-Budde <mkl@pengutronix.de>
2012-10-04 19:26:22 +02:00
..
2012-10-02 17:26:42 -07:00
2012-10-01 19:11:38 -07:00
2012-10-01 19:11:38 -07:00
2012-10-01 19:11:38 -07:00
2012-09-24 10:07:40 -07:00
2012-10-02 17:26:42 -07:00
2012-10-01 12:05:36 -07:00
2012-10-01 19:11:38 -07:00
2012-10-01 18:28:06 -07:00
2012-10-01 19:11:38 -07:00
2012-10-02 17:26:42 -07:00
2012-10-01 12:09:59 -07:00
2012-10-01 18:19:05 -07:00
2012-10-01 18:46:13 -07:00