Files
tegra-linux-noble/drivers
Julia Lawall fc2bc0c29a ab8500_charger: Fix error return code
Initialize return variable before exiting on an error path.

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: Anton Vorontsov <anton.vorontsov@linaro.org>
2012-08-22 18:47:25 -07:00
..
2012-08-02 13:51:46 -04:00
2012-08-04 12:15:39 +04:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-08-06 18:10:04 +02:00
2012-08-13 14:34:02 +08:00
2012-08-12 13:42:18 -07:00
2012-08-10 12:27:47 +02:00
2012-07-31 08:16:24 -06:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00