Julia Lawall 48f125ce1c net: ipv6: fix error return code
Initialize return variable before exiting on an error path.

The initial initialization of the return variable is also dropped, because
that value is never used.

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: David S. Miller <davem@davemloft.net>
2012-08-31 16:27:48 -04:00
..
2012-05-18 02:24:13 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-08-31 16:27:48 -04:00
2012-06-04 11:45:11 -04:00
2012-07-30 14:53:21 -07:00
2012-07-18 11:28:46 -07:00
2012-06-27 15:36:44 -07:00
2012-05-15 13:13:34 -04:00
2012-08-14 14:45:07 -07:00
2012-07-19 10:55:36 -07:00
2011-11-22 16:43:32 -05:00