diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-01-17 03:17:03 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-01-19 09:57:42 +0100 |
commit | e073f7caa26cc7f5423779b1a47f1689dd20bf17 (patch) | |
tree | b9baf0e9ca2d17f443d3e885b44c35da73145710 /drivers | |
parent | 0c4335de196c23a28d9de8f5eb8b973673051ad9 (diff) | |
download | linux-e073f7caa26cc7f5423779b1a47f1689dd20bf17.tar.bz2 |
virt_wifi: remove set but not used variable 'w_priv'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/wireless/virt_wifi.c: In function 'virt_wifi_net_device_stop':
drivers/net/wireless/virt_wifi.c:432:31: warning:
variable 'w_priv' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/virt_wifi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/virt_wifi.c b/drivers/net/wireless/virt_wifi.c index 245d4d0af89b..9479b26b2d02 100644 --- a/drivers/net/wireless/virt_wifi.c +++ b/drivers/net/wireless/virt_wifi.c @@ -424,13 +424,11 @@ static int virt_wifi_net_device_open(struct net_device *dev) static int virt_wifi_net_device_stop(struct net_device *dev) { struct virt_wifi_netdev_priv *n_priv = netdev_priv(dev); - struct virt_wifi_wiphy_priv *w_priv; n_priv->is_up = false; if (!dev->ieee80211_ptr) return 0; - w_priv = wiphy_priv(dev->ieee80211_ptr->wiphy); virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy); virt_wifi_cancel_connect(dev); |