Staging: rtl819u: ieee80211: Remove unused variable
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 22 Aug 2015 10:58:13 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:37 +0000 (18:24 -0700)
This patch discards the variable count as it is not used anywhere
throughout the kernel.

Build tested it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c

index 3e50252..3445fd4 100644 (file)
@@ -308,7 +308,6 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
        HT_EXTCHNL_OFFSET chan_offset=0;
        HT_CHANNEL_WIDTH bandwidth=0;
        int b40M = 0;
-       static int count;
        chan = ieee->current_network.channel;
        netif_carrier_off(ieee->dev);
 
@@ -357,7 +356,6 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
                ieee80211_start_send_beacons(ieee);
 
        netif_carrier_on(ieee->dev);
-       count = 0;
        up(&ieee->wx_sem);
 
 }