[PATCH 5/5] drivers/net/wireless/brcm80211/brcmsmac/main.c: don't use unmodified return variable name

From: Peter Teoh
Date: Mon Mar 16 2015 - 11:20:36 EST


Discovered by Coccinelle. Removed the use of variable for storing
returning values, which is un-modified / un-used throughout.

Signed-off-by: Peter Teoh <htmldeveloper@xxxxxxxxx

diff -u -p a/drivers/net/wireless/brcm80211/brcmsmac/main.c
b/drivers/net/wireless/brcm80211/brcmsmac/main.c
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -5107,9 +5106,7 @@ int brcms_c_up(struct brcms_c_info *wlc)

static uint brcms_c_down_del_timer(struct brcms_c_info *wlc)
{
- uint callbacks = 0;
-
- return callbacks;
+ return 0;
}

static int brcms_b_bmac_down_prep(struct brcms_hardware *wlc_hw)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/