Commit e073f7ca authored by YueHaibing's avatar YueHaibing Committed by Johannes Berg

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0c4335de
...@@ -424,13 +424,11 @@ static int virt_wifi_net_device_open(struct net_device *dev) ...@@ -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) static int virt_wifi_net_device_stop(struct net_device *dev)
{ {
struct virt_wifi_netdev_priv *n_priv = netdev_priv(dev); struct virt_wifi_netdev_priv *n_priv = netdev_priv(dev);
struct virt_wifi_wiphy_priv *w_priv;
n_priv->is_up = false; n_priv->is_up = false;
if (!dev->ieee80211_ptr) if (!dev->ieee80211_ptr)
return 0; return 0;
w_priv = wiphy_priv(dev->ieee80211_ptr->wiphy);
virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy); virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy);
virt_wifi_cancel_connect(dev); virt_wifi_cancel_connect(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment