staging: rtl8723bs: remove unnecessary hex dump logs
cover staging: rtl8723bs: remove unnecessary hex dump logs
This macro removes unnecessary hex dump in kernel logs.
Used the following semantic patch:
@@
@@
- print_hex_dump_debug(...);
Remove macro left unused after print_hex_dump_debug() deletion.
Fabio Aiuto (2):
staging: rtl8723bs: remove unnecessary hex dumps
staging: rtl8723bs: remove unused macro DRIVER_PREFIX
drivers/staging/rtl8723bs/hal/hal_com.c | 6 ------ drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 18 ------------------ .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 --- drivers/staging/rtl8723bs/include/rtw_debug.h | 2 -- 4 files changed, 29 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/2 staging: rtl8723bs: remove unnecessary hex dumps
Remove unnecessary hex dumps in kernel log.
This deletion has been done with the following
semantic patch:
@@
@@
- print_hex_dump_debug(...);
Signed-off-by Fabio Aiuto <[email protected]>
--- drivers/staging/rtl8723bs/hal/hal_com.c | 6 ------ drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 18 ------------------ .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 --- 3 files changed, 27 deletions(-)
drivers/staging/rtl8723bs/hal/hal_com.c +0 -6
@@ -916,16 +916,10 @@ s32 c2h_evt_read_88xx(struct adapter *adapter, u8 *buf) c2h_evt->seq =rtw_read8 (adapter,REG_C2HEVT_CMD_SEQ_88XX ); c2h_evt->plen =rtw_read8 (adapter,REG_C2HEVT_CMD_LEN_88XX ); -print_hex_dump_debug (DRIVER_PREFIX ": c2h_evt_read(): " ,DUMP_PREFIX_NONE , -16 ,1 , &c2h_evt,sizeof (c2h_evt), false); -/* Read the content */ for (i =0 ; i < c2h_evt->plen; i++) c2h_evt->payload[i] =rtw_read8 (adapter,REG_C2HEVT_MSG_NORMAL +2 + i); -print_hex_dump_debug (DRIVER_PREFIX ": c2h_evt_read(): Command Content:\n" , -DUMP_PREFIX_NONE ,16 ,1 , c2h_evt->payload, c2h_evt->plen, false); - ret = _SUCCESS; clear_evt:
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +0 -18
@@ -309,9 +309,6 @@ static void rtl8723b_set_FwRsvdPage_cmd(struct adapter *padapter, struct rsvdpagSET_8723B_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA (u1H2CRsvdPageParm, rsvdpageloc->LocQosNull);SET_8723B_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA (u1H2CRsvdPageParm, rsvdpageloc->LocBTQosNull); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CRsvdPageParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CRsvdPageParm,H2C_RSVDPAGE_LOC_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_RSVD_PAGE ,H2C_RSVDPAGE_LOC_LEN , u1H2CRsvdPageParm); }
@@ -329,9 +326,6 @@ void rtl8723b_set_FwMediaStatusRpt_cmd(struct adapter *padapter, u8 mstatus, u8SET_8723B_H2CCMD_MSRRPT_PARM_MACID (u1H2CMediaStatusRptParm, macid);SET_8723B_H2CCMD_MSRRPT_PARM_MACID_END (u1H2CMediaStatusRptParm, macid_end); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CMediaStatusRptParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CMediaStatusRptParm,H2C_MEDIA_STATUS_RPT_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_MEDIA_STATUS_RPT ,H2C_MEDIA_STATUS_RPT_LEN , u1H2CMediaStatusRptParm); }
@@ -348,9 +342,6 @@ void rtl8723b_set_FwMacIdConfig_cmd(struct adapter *padapter, u8 mac_id, u8 raidSET_8723B_H2CCMD_MACID_CFG_RATE_MASK2 (u1H2CMacIdConfigParm, (u8)((mask &0x00ff0000 ) >>16 ));SET_8723B_H2CCMD_MACID_CFG_RATE_MASK3 (u1H2CMacIdConfigParm, (u8)((mask &0xff000000 ) >>24 )); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CMacIdConfigParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CMacIdConfigParm,H2C_MACID_CFG_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_MACID_CFG ,H2C_MACID_CFG_LEN , u1H2CMacIdConfigParm); }
@@ -365,9 +356,6 @@ void rtl8723b_set_rssi_cmd(struct adapter *padapter, u8 *param)SET_8723B_H2CCMD_RSSI_SETTING_RSSI (u1H2CRssiSettingParm, rssi);SET_8723B_H2CCMD_RSSI_SETTING_ULDL_STATE (u1H2CRssiSettingParm, uldl_state); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CRssiSettingParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CRssiSettingParm,H2C_RSSI_SETTING_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_RSSI_SETTING ,H2C_RSSI_SETTING_LEN , u1H2CRssiSettingParm); }
@@ -465,9 +453,6 @@ void rtl8723b_set_FwPwrMode_cmd(struct adapter *padapter, u8 psmode)hal_btcoex_RecordPwrMode (padapter, u1H2CPwrModeParm,H2C_PWRMODE_LEN ); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CPwrModeParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CPwrModeParm,H2C_PWRMODE_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_SET_PWR_MODE ,H2C_PWRMODE_LEN , u1H2CPwrModeParm); }
@@ -485,9 +470,6 @@ void rtl8723b_set_FwPsTuneParam_cmd(struct adapter *padapter)SET_8723B_H2CCMD_PSTUNE_PARM_ADOPT (u1H2CPsTuneParm,1 );SET_8723B_H2CCMD_PSTUNE_PARM_DTIM_PERIOD (u1H2CPsTuneParm, dtim_period); -print_hex_dump_debug (DRIVER_PREFIX ": u1H2CPsTuneParm:" ,DUMP_PREFIX_NONE , -16 ,1 , u1H2CPsTuneParm,H2C_PSTUNEPARAM_LEN , false); -FillH2CCmd8723B (padapter,H2C_8723B_PS_TUNING_PARA ,H2C_PSTUNEPARAM_LEN , u1H2CPsTuneParm); }
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +0 -3
@@ -3315,9 +3315,6 @@ void C2HPacketHandler_8723B(struct adapter *padapter, u8 *pbuffer, u16 length) C2hEvent.CmdLen = length-2 ; tmpBuf = pbuffer+2 ; -print_hex_dump_debug (DRIVER_PREFIX ": C2HPacketHandler_8723B(): Command Content:\n" , -DUMP_PREFIX_NONE ,16 ,1 , tmpBuf, C2hEvent.CmdLen, false); -process_c2h_event (padapter, &C2hEvent, tmpBuf);/* c2h_handler_8723b(padapter,&C2hEvent); */ }
Signature · 1 line
2.20.1
PATCH 2/2 staging: rtl8723bs: remove unused macro DRIVER_PREFIX
In reply to Fabio Aiutoremove unused macro DRIVER_PREFIX.
Signed-off-by Fabio Aiuto <[email protected]>
--- drivers/staging/rtl8723bs/include/rtw_debug.h | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8723bs/include/rtw_debug.h +0 -2
@@ -7,8 +7,6 @@#ifndef __RTW_DEBUG_H__#define __RTW_DEBUG_H__ -#define DRIVER_PREFIX "rtl8723bs: " -void mac_reg_dump (struct adapter *adapter);void bb_reg_dump (struct adapter *adapter);void rf_reg_dump (struct adapter *adapter);
Signature · 1 line
2.20.1