diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-05-20 04:44:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 01:16:24 +0400 |
commit | aff4b9743225d1c8a4cfa51b186bc3ad789dc8f9 (patch) | |
tree | 6467edb59f19b2c50bce9e6040854152186ae854 /include | |
parent | 5fe821a9dee241fa450703ab7015d970ee0cfb8d (diff) | |
download | linux-aff4b9743225d1c8a4cfa51b186bc3ad789dc8f9.tar.xz |
wimax/i2400m: make return of 0 explicit
Delete unnecessary local variable whose value is always 0 and that hides
the fact that the result is always 0.
A simplified version of the semantic patch that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r exists@
local idexpression ret;
expression e;
position p;
@@
-ret = 0;
... when != ret = e
return
- ret
+ 0
;
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions