Julia Lawall 39375334a1 dmaengine: ste_dma40: 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2014-12-05 23:25:48 +05:30
..
2014-09-28 07:05:16 -07:00
2013-01-07 17:36:37 +01:00
2014-10-07 20:39:25 -04:00
2014-10-07 20:39:25 -04:00
2012-09-01 08:57:12 -07:00
2014-07-12 09:57:42 -07:00
2014-07-12 09:57:42 -07:00
2014-12-05 21:04:22 +05:30
2013-12-12 22:43:41 -08:00