git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fe821a
)
wimax/i2400m: make return of 0 explicit
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Tue, 20 May 2014 00:44:49 +0000
(08:44 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 May 2014 21:16:24 +0000
(17:16 -0400)
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>
drivers/net/wimax/i2400m/driver.c
patch
|
blob
|
history
diff --cc
drivers/net/wimax/i2400m/driver.c
Simple merge