From: Arend van Spriel Date: Thu, 9 Jun 2011 14:44:46 +0000 (+0200) Subject: staging: brcm80211: remove regs variable from brcms_ioctl function X-Git-Tag: firefly_0821_release~3680^2~4924^2~562 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=206c5a43563e960fb0dd8bde37b6ad4fcb9ba679;p=firefly-linux-kernel-4.4.55.git staging: brcm80211: remove regs variable from brcms_ioctl function This variable was declared and initialized but never used so it has been removed. Signed-off-by: Arend van Spriel Reviewed-by: Roland Vossen Reviewed-by: Franky Lin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/main.c b/drivers/staging/brcm80211/brcmsmac/main.c index c8d6679cc1bb..28ae74151702 100644 --- a/drivers/staging/brcm80211/brcmsmac/main.c +++ b/drivers/staging/brcm80211/brcmsmac/main.c @@ -2515,7 +2515,6 @@ _wlc_ioctl(struct wlc_info *wlc, int cmd, void *arg, int len, int val, *pval; bool bool_val; int bcmerror; - d11regs_t *regs; struct scb *nextscb; bool ta_ok; uint band; @@ -2551,7 +2550,6 @@ _wlc_ioctl(struct wlc_info *wlc, int cmd, void *arg, int len, /* bool conversion to avoid duplication below */ bool_val = val != 0; bcmerror = 0; - regs = wlc->regs; if ((arg == NULL) || (len <= 0)) { wiphy_err(wlc->wiphy, "wl%d: %s: Command %d needs arguments\n",