Julia Lawall a0c81ce087 gpio: xlp: 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: Linus Walleij <linus.walleij@linaro.org>
2015-08-26 14:49:23 +02:00
..
2015-08-13 14:42:55 +02:00
2014-12-14 16:10:09 -08:00
2015-05-13 10:02:12 +02:00
2015-07-28 09:45:39 +02:00
2015-06-16 11:00:06 +02:00
2015-06-16 11:00:06 +02:00
2015-05-05 17:50:07 +02:00
2015-07-28 09:45:39 +02:00
2015-05-06 15:33:48 +02:00
2015-01-22 09:45:24 +01:00
2014-12-14 16:10:09 -08:00
2015-08-26 14:49:23 +02:00
2015-08-13 14:42:55 +02:00