From: Jes Sorensen Date: Fri, 16 May 2014 08:04:09 +0000 (+0200) Subject: staging: rtl8732au: Remove some unused hal data pointers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=daf1fe8053adc9534b5f8975cb492a011cb8257f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: rtl8732au: Remove some unused hal data pointers Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c index 8002063a601c..7a40cb102575 100644 --- a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c +++ b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c @@ -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] */