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 15:31:10 -0500 |
commit | c1e3334fa4b2891752f1367b47a60209353ba2f5 (patch) | |
tree | 6342137bed68dc308aae74b7501ebcd2e5fced86 /net | |
parent | 90c7afc96cbbd77f44094b5b651261968e97de67 (diff) | |
download | lwn-c1e3334fa4b2891752f1367b47a60209353ba2f5.tar.gz lwn-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