diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-12-26 20:12:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-29 21:31:10 +0100 |
commit | c1e3334fa4b2891752f1367b47a60209353ba2f5 (patch) | |
tree | 6342137bed68dc308aae74b7501ebcd2e5fced86 /net | |
parent | openvswitch: Fix template leak in error cases. (diff) | |
download | linux-c1e3334fa4b2891752f1367b47a60209353ba2f5.tar.xz linux-c1e3334fa4b2891752f1367b47a60209353ba2f5.zip |
drivers: net: cpsw: fix error return code
Propagate the return value of platform_get_irq on failure.
A simplified version of the semantic match that finds the two cases where
no error code is returned at all 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')
0 files changed, 0 insertions, 0 deletions