Re: [PATCH 6/11] net: wireless: Remove useless return variables

2014-05-31 Thread Dan Carpenter
On Sat, May 31, 2014 at 10:14:06AM -0300, Peter Senna Tschudin wrote: > diff --git a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c > b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c > index b0fd807..57ecc05 100644 > --- a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c > +++ b

[PATCH 6/11] net: wireless: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. wl_cfg80211.c verified by compilation only. phy/phy_cmn.c unverified. The coccinelle script that find and fixes this issu