c8210126cdb67afffff0b18bf9b82e089cc4e parent fa026e223df2514b271b20f839ab05d7f21181b9 author Julia Lawall 1346222952 +0000 committer David S. Miller 1346444868 -0400 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/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller G[