staging: rtl8188eu: Remove pppoe_connection_in_progress from struct adapter
authornavin patidar <navin.patidar@gmail.com>
Mon, 16 Jun 2014 16:05:41 +0000 (21:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:37:17 +0000 (15:37 -0700)
Value stored in pppoe_connection_in_progress isn't being
used by driver.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/include/drv_types.h

index 260243b6cb746c07f82e44541fa835b0bfa3b594..e0e119cd11dd8e8142cc8ef436177d51b4f61f26 100644 (file)
@@ -1546,13 +1546,6 @@ void rtw_dynamic_check_timer_handlder(struct adapter *adapter)
            (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == true)) {
                /*  expire NAT2.5 entry */
                nat25_db_expire(adapter);
-
-               if (adapter->pppoe_connection_in_progress > 0)
-                       adapter->pppoe_connection_in_progress--;
-
-               /*  due to rtw_dynamic_check_timer_handlder() is called every 2 seconds */
-               if (adapter->pppoe_connection_in_progress > 0)
-                       adapter->pppoe_connection_in_progress--;
        }
 
        rcu_read_unlock();
index 9c3f905a2f111c297dc85583558db03cd81931c6..71b4af7c52cbdc6faf67355aa58fe93ed6d25478 100644 (file)
@@ -256,7 +256,6 @@ struct adapter {
 
        spinlock_t br_ext_lock;
        struct nat25_network_db_entry   *nethash[NAT25_HASH_SIZE];
-       int                             pppoe_connection_in_progress;
        unsigned char                   pppoe_addr[MACADDRLEN];
        unsigned char                   scdb_mac[MACADDRLEN];
        unsigned char                   scdb_ip[4];