]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
brcmfmac: remove set but not used variable 'old_state'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 18 Feb 2019 08:08:46 +0000 (08:08 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:07:40 +0000 (17:07 +0200)
commite4d1b2716b8859199c28f2ac5f984bd05a146a6b
treec58b267225f59ab18afd3bbbd29604bbf7e322bb
parent16e646768396339b3d354985b99bcd3f1f195a7d
brcmfmac: remove set but not used variable 'old_state'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c: In function 'brcmf_usb_state_change':
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:578:6: warning:
 variable 'old_state' set but not used [-Wunused-but-set-variable]

It's never used and can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c