staging: r8188eu: remove br_ext_lock and fix_rate members of struct adapter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:29:50 +0000 (22:29 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
br_ext_lock and fix_rate are not used after initialization.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index 81f2931876f8b9f64cf53951a3d54b5bb3c98133..a37dc2900f45ace5dc4d8e17848501e1b6b39527 100644 (file)
@@ -139,7 +139,6 @@ void rtl8188e_InitHalDm(struct adapter *Adapter)
        pdmpriv->DMFlag = DYNAMIC_FUNC_DISABLE;
        Update_ODM_ComInfo_88E(Adapter);
        ODM_DMInit(dm_odm);
-       Adapter->fix_rate = 0xFF;
 }
 
 void rtl8188e_HalDmWatchDog(struct adapter *Adapter)
index e5def335fd906daba747b9af9ffbc50116c35fee..0279eaf6cdc610dbd2817581387cd8b9cc91f563 100644 (file)
@@ -225,10 +225,6 @@ struct adapter {
        u8 bRxRSSIDisplay;
 
        struct mutex hw_init_mutex;
-
-       spinlock_t br_ext_lock;
-
-       u8      fix_rate;
 };
 
 #define adapter_to_dvobj(adapter) (adapter->dvobj)
index 23dbb6ca7d328c93c22d9019c403dc612bbe5019..20eca02122ce32954aa00f06413a90efc44c30e1 100644 (file)
@@ -911,8 +911,6 @@ u8 rtw_init_drv_sw(struct adapter *padapter)
 
        rtw_hal_sreset_init(padapter);
 
-       spin_lock_init(&padapter->br_ext_lock);
-
 exit:
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-rtw_init_drv_sw\n"));