Julia Lawall 73112f9b08 solos-pci: fix error return code
Return a negative error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-23 14:29:44 -05:00
..
2011-03-31 11:26:23 -03:00
2014-08-08 15:57:28 -07:00
2005-04-16 15:20:36 -07:00
2014-08-08 15:57:28 -07:00
2011-03-31 11:26:23 -03:00
2013-02-08 14:22:05 -05:00
2005-04-16 15:20:36 -07:00
2014-11-23 14:29:44 -05:00
2012-03-28 18:30:03 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2011-07-26 16:49:47 -07:00
2005-04-16 15:20:36 -07:00
2013-01-03 15:57:04 -08:00
2005-04-16 15:20:36 -07:00