Thread (18 messages) 18 messages, 6 authors, 2014-05-22

Re: [PATCH 4/13 v2] wimax/i2400m: make return of 0 explicit

From: David Miller <davem@davemloft.net>
Date: 2014-05-21 21:19:41
Also in: kernel-janitors, lkml

From: Julia Lawall <redacted>
Date: Tue, 20 May 2014 08:44:49 +0800 (SGT)
From: Julia Lawall <redacted>

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/)
 ...
Signed-off-by: Julia Lawall <redacted>

---
Alternatively, is an error code wanted under the if?

v2: remove the use of 0 as an argument in the call to d_fnend
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help