[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1445439337-19055-13-git-send-email-punitvara@gmail.com>
Date: Wed, 21 Oct 2015 20:25:34 +0530
From: Punit Vara <punitvara@...il.com>
To: kvalo@....qualcomm.com
Cc: stas.yakovlev@...il.com, chaoming_li@...lsil.com.cn,
Larry.Finger@...inger.net, chunkeey@...glemail.com,
sgruszka@...hat.com, brudley@...adcom.com, arend@...adcom.com,
linville@...driver.com, jirislaby@...il.com, mickflemm@...il.com,
mcgrof@...not-panic.com, k.eugene.e@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
brcm80211-dev-list@...adcom.com, wcn36xx@...ts.infradead.org,
johannes.berg@...el.com, meuleman@...adcom.com,
Punit Vara <punitvara@...il.com>
Subject: [PATCH 12/15] net: wireless: brcm80211: Remove unneeded variable which return 0
This is patch to the brcmsmac/main.c that removes unnecessary variable
which was declared to return zero.
This patch fixes up warning reported by coccicheck:
-Unneeded variable: "err". Return "0" on line 3788
Signed-off-by: Punit Vara <punitvara@...il.com>
---
drivers/net/wireless/brcm80211/brcmsmac/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c
index 9728be0..9d717b6 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -3777,7 +3777,6 @@ static void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc)
*/
static int brcms_c_set_mac(struct brcms_bss_cfg *bsscfg)
{
- int err = 0;
struct brcms_c_info *wlc = bsscfg->wlc;
/* enter the MAC addr into the RXE match registers */
@@ -3785,7 +3784,7 @@ static int brcms_c_set_mac(struct brcms_bss_cfg *bsscfg)
brcms_c_ampdu_macaddr_upd(wlc);
- return err;
+ return 0;
}
/* Write the BSS config's BSSID address to core (set_bssid in d11procs.tcl).
--
2.5.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists