Julia Lawall 38276a912c mmc: omap: 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: Ulf Hansson <ulf.hansson@linaro.org>
2015-08-27 14:50:56 +02:00
..
2015-05-05 13:35:39 -06:00
2012-11-28 12:28:18 -08:00
2015-03-23 14:13:49 +01:00
2015-02-04 09:42:29 +01:00
2013-08-24 23:45:22 -04:00
2015-08-27 14:50:56 +02:00
2014-09-24 10:13:09 +02:00
2015-06-01 09:06:48 +02:00
2015-01-19 09:56:07 +01:00
2015-03-23 14:13:49 +01:00