mwifiex: remove redundant variable report_scan_result
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 12 Sep 2014 14:38:57 +0000 (20:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:52 +0000 (15:00 -0400)
This variable is never used, get rid of it.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/scan.c
drivers/net/wireless/mwifiex/sta_cmdresp.c

index c3d097ce2c16d533debcc8688f2beed604127eb0..651fd8cc4c7f82c8c10cbffe32cc2d63e7da09af 100644 (file)
@@ -548,7 +548,6 @@ struct mwifiex_private {
        u8 nick_name[16];
        u16 current_key_index;
        struct semaphore async_sem;
-       u8 report_scan_result;
        struct cfg80211_scan_request *scan_request;
        u8 cfg_bssid[6];
        struct wps wps;
index 183528db88bf6889c43ebf28de8b435a6a536673..2d1a2471fae3e75872dbfa7f62d918a8692502b4 100644 (file)
@@ -1779,9 +1779,6 @@ static void mwifiex_check_next_scan_command(struct mwifiex_private *priv)
                if (!adapter->ext_scan)
                        mwifiex_complete_scan(priv);
 
-               if (priv->report_scan_result)
-                       priv->report_scan_result = false;
-
                if (priv->scan_request) {
                        dev_dbg(adapter->dev, "info: notifying scan done\n");
                        cfg80211_scan_done(priv->scan_request, 0);
index 62866b0f083015d66d703feb4bbebd0964f26e66..4aad44685f8dff43f80e5ed79a729bf99dbe8d5c 100644 (file)
@@ -85,8 +85,6 @@ mwifiex_process_cmdresp_error(struct mwifiex_private *priv,
                spin_lock_irqsave(&adapter->mwifiex_cmd_lock, flags);
                adapter->scan_processing = false;
                spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, flags);
-               if (priv->report_scan_result)
-                       priv->report_scan_result = false;
                break;
 
        case HostCmd_CMD_MAC_CONTROL: