wil6210: remove set but not used variable 'wdev'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 5 Dec 2018 07:59:03 +0000 (07:59 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Dec 2018 07:44:41 +0000 (09:44 +0200)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/ath/wil6210/main.c: In function '_wil6210_disconnect':
drivers/net/wireless/ath/wil6210/main.c:407:23: warning:
 variable 'wdev' set but not used [-Wunused-but-set-variable]

It never used since commit ("e1b43407c034 wil6210: refactor disconnect flow")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c

index ba6a2eeedb6502a342e5c4f444db84ed697fc7ad..5b7de00affe26c1766b15a1a616f56e88da1fc6b 100644 (file)
@@ -404,7 +404,6 @@ static void _wil6210_disconnect(struct wil6210_vif *vif, const u8 *bssid,
 {
        struct wil6210_priv *wil;
        struct net_device *ndev;
-       struct wireless_dev *wdev;
        int cid = -ENOENT;
 
        if (unlikely(!vif))
@@ -412,7 +411,6 @@ static void _wil6210_disconnect(struct wil6210_vif *vif, const u8 *bssid,
 
        wil = vif_to_wil(vif);
        ndev = vif_to_ndev(vif);
-       wdev = vif_to_wdev(vif);
 
        might_sleep();
        wil_info(wil, "disconnect bssid=%pM, reason=%d\n", bssid, reason_code);