Staging: rtl8192e: Remove unused variable
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Sat, 27 Sep 2014 15:19:04 +0000 (20:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:39:27 +0000 (23:39 -0400)
This patch removes a variable which has never been used. The following
Coccinelle semantic patch was used to make this transformation:

@@
type T;
identifier i;
constant C;
@@

- T i;
  <... when != i
- i = C;
  ...>

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac_wx.c

index d077f49c2abd45666f8a275f0d923e2f0465f94f..835f3d78a16f44589719bddb7e962bae60baa359 100644 (file)
@@ -335,7 +335,6 @@ void rtllib_wx_sync_scan_wq(void *data)
        enum ht_extchnl_offset chan_offset = 0;
        enum ht_channel_width bandwidth = 0;
        int b40M = 0;
-       static int count;
 
        if (!(ieee->softmac_features & IEEE_SOFTMAC_SCAN)) {
                rtllib_start_scan_syncro(ieee, 0);
@@ -412,7 +411,6 @@ void rtllib_wx_sync_scan_wq(void *data)
 
        rtllib_wake_all_queues(ieee);
 
-       count = 0;
 out:
        up(&ieee->wx_sem);