Files
linux/drivers/mtd/ubi
Julia Lawall 4d525145a6 UBI: 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>
Reviewed-by: Richard Weinberger <richard@nod.at>
2014-01-02 17:16:01 +02:00
..
2014-01-02 17:16:01 +02:00
2014-01-02 17:16:01 +02:00
2013-06-29 12:57:49 +04:00
2012-10-03 12:29:37 +03:00
2012-12-10 13:38:59 +02:00
2012-10-03 16:39:37 +03:00
2012-10-03 16:39:37 +03:00
2012-09-04 09:39:01 +03:00
2012-12-10 13:38:59 +02:00
2013-10-03 19:42:46 +03:00