staging: rtl8732au: Remove some unused hal data pointers
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:09 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:24 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c

index 8002063a601c3e289f1b70e700e4cc8085d43f4a..7a40cb102575379ead047706f0f1738650271c32 100644 (file)
@@ -1727,11 +1727,8 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
 
 void rtl8723a_InitAntenna_Selection(struct rtw_adapter *padapter)
 {
-       struct hal_data_8723a *pHalData;
        u8 val;
 
-       pHalData = GET_HAL_DATA(padapter);
-
        val = rtw_read8(padapter, REG_LEDCFG2);
        /*  Let 8051 take control antenna settting */
        val |= BIT(7);          /*  DPDT_SEL_EN, 0x4C[23] */
@@ -1740,11 +1737,8 @@ void rtl8723a_InitAntenna_Selection(struct rtw_adapter *padapter)
 
 void rtl8723a_CheckAntenna_Selection(struct rtw_adapter *padapter)
 {
-       struct hal_data_8723a *pHalData;
        u8 val;
 
-       pHalData = GET_HAL_DATA(padapter);
-
        val = rtw_read8(padapter, REG_LEDCFG2);
        /*  Let 8051 take control antenna settting */
        if (!(val & BIT(7))) {
@@ -1755,10 +1749,8 @@ void rtl8723a_CheckAntenna_Selection(struct rtw_adapter *padapter)
 
 void rtl8723a_DeinitAntenna_Selection(struct rtw_adapter *padapter)
 {
-       struct hal_data_8723a *pHalData;
        u8 val;
 
-       pHalData = GET_HAL_DATA(padapter);
        val = rtw_read8(padapter, REG_LEDCFG2);
        /*  Let 8051 take control antenna settting */
        val &= ~BIT(7);         /*  DPDT_SEL_EN, clear 0x4C[23] */