staging: rtl8723bs: remove unused code block
PATCH 1/1 staging: rtl8723bs: remove unused code block
Remove conditional code block checked by unused CONFIG_GPIO_WAKEUP
Cleaning required in TODO file:
find and remove code blocks guarded by never set CONFIG_FOO defines
Signed-off-by Fabio Aiuto <[email protected]>
--- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 8 --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 69 ------------------- .../staging/rtl8723bs/include/rtl8723b_hal.h | 4 -- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 57 --------------- 4 files changed, 138 deletions(-)
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +0 -8
@@ -1183,11 +1183,6 @@ static void rtl8723b_set_FwWoWlanCtrl_Cmd(struct adapter *padapter, u8 bFuncEn)u8 gpio_high_active =0 ;/* 0: low active, 1: high active */ u8 magic_pkt =0 ; -#ifdef CONFIG_GPIO_WAKEUP - gpionum =WAKEUP_GPIO_IDX ; - sdio_wakeup_enable =0 ; -#endif -#ifdef CONFIG_PNO_SUPPORT if (!ppwrpriv->wowlan_pno_enable) magic_pkt =1 ;
@@ -1358,9 +1353,6 @@ static void rtl8723b_set_FwAPWoWlanCtrl_Cmd(struct adapter *padapter, u8 bFuncEnu8 gpionum =0 , gpio_dur =0 ;u8 gpio_high_active =1 ;/* 0: low active, 1: high active */ u8 gpio_pulse = bFuncEn; -#ifdef CONFIG_GPIO_WAKEUP - gpionum =WAKEUP_GPIO_IDX ; -#endif DBG_871X ("%s(): bFuncEn =%d\n" , __func__, bFuncEn);
drivers/staging/rtl8723bs/hal/sdio_halinit.c +0 -69
93 lines not on this page · raw message
drivers/staging/rtl8723bs/include/rtl8723b_hal.h +0 -4
@@ -268,10 +268,6 @@ void rtl8723bs_cancle_checkbthang_workqueue(struct adapter *adapter);void rtl8723bs_hal_check_bt_hang (struct adapter *adapter);#endif -#ifdef CONFIG_GPIO_WAKEUP -void HalSetOutPutGPIO (struct adapter *padapter,u8 index,u8 OutPutValue); -#endif -int FirmwareDownloadBT (struct adapter *adapter,struct rt_firmware *firmware);void CCX_FwC2HTxRpt_8723b (struct adapter *padapter,u8 *pdata,u8 len);
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +0 -57
75 lines not on this page · raw message
Signature · 1 line
2.20.1