]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: Eliminate HW_VAR_DM_FLAG
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:44 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:09 +0000 (08:29 -0700)
Both the read and write calls were never used

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/hal_com.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h

index 66adec743a8554f552d066420e04adf747bc0d23..62281287456f30ce0180e3aeb98e58ee09deb62e 100644 (file)
@@ -865,13 +865,6 @@ void rtl8723a_set_initial_gain(struct rtw_adapter *padapter, u32 rx_gain)
        }
 }
 
-void rtl8723a_odm_support_ability_write(struct rtw_adapter *padapter, u32 val)
-{
-       struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
-
-       pHalData->odmpriv.SupportAbility = val;
-}
-
 void rtl8723a_odm_support_ability_restore(struct rtw_adapter *padapter)
 {
        struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
index 62089f846838f4cdec008002911da1a255e4a3b1..2c5334512129d77cc6b68e7708b8eb5c47314535 100644 (file)
@@ -3132,17 +3132,12 @@ void hw_var_set_mlme_join(struct rtw_adapter *padapter, u8 type)
 void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
 {
        struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
-       u32 *val32 = (u32 *)val;
 
        switch (variable) {
        case HW_VAR_TXPAUSE:
                rtl8723a_set_tx_pause(padapter, *val);
                break;
 
-       case HW_VAR_DM_FLAG:
-               rtl8723a_odm_support_ability_write(padapter, *val32);
-               break;
-
        case HW_VAR_EFUSE_BYTES:
                pHalData->EfuseUsedBytes = *((u16 *) val);
                break;
@@ -3172,13 +3167,6 @@ void GetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
                *val = pHalData->rf_type;
                break;
 
-       case HW_VAR_DM_FLAG:
-       {
-               struct dm_odm_t *podmpriv = &pHalData->odmpriv;
-               *((u32 *) val) = podmpriv->SupportAbility;
-       }
-               break;
-
        case HW_VAR_FWLPS_RF_ON:
        {
                /*  When we halt NIC, we should check if FW LPS is leave. */
index 2675fc09fecf096fe1772ad6df0f2cf84ffb8d65..1fd253733277c14d85d4dd85272e85e8d99b86f7 100644 (file)
@@ -39,7 +39,6 @@ enum HW_VARIABLES {
        HW_VAR_INIT_RTS_RATE,
        HW_VAR_TXPAUSE,
        HW_VAR_RF_TYPE,
-       HW_VAR_DM_FLAG,
        HW_VAR_CAM_READ,
        HW_VAR_FWLPS_RF_ON,
        HW_VAR_TDLS_WRCR,