Julia Lawall ab576627c8 RDMA/amso1100: Fix error return code
Set the return variable to an error code as done 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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2014-02-12 11:11:46 -08:00
..
2013-10-14 10:10:00 -07:00
2013-08-12 12:32:31 -07:00
2014-02-12 11:11:46 -08:00
2011-01-28 15:40:25 -08:00
2011-03-31 11:26:23 -03:00
2014-02-12 11:11:46 -08:00
2010-10-23 13:45:03 -07:00