diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-08-23 02:11:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 13:37:31 -0700 |
commit | 1ef53ebfa9ff5b205604fc781868765e00ae875f (patch) | |
tree | c5b2a2a8b83f702e974f7b1d0d4f2fa28cadb4d1 /net/ipv6/ah6.c | |
parent | 96fd26b97a6b1412e9a302cd11363e28aa9b4ee5 (diff) |
net: davinci_emac: fix error return code
Propagate error code on failure.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret = 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>
Diffstat (limited to 'net/ipv6/ah6.c')
0 files changed, 0 insertions, 0 deletions