From: Ethan Tidmore Date: Tue, 27 Jan 2026 01:21:15 +0000 (-0600) Subject: staging: rtl8723bs: remove unused variable TxBBSwing_2G X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af021ad7b19eb5e90724d56481ff4a3c6804094;p=thirdparty%2Fkernel%2Flinux.git staging: rtl8723bs: remove unused variable TxBBSwing_2G The variable TxBBSwing_2G is initialized but never read or used anywhere in the driver. Remove it to clean up dead code and fix a CamelCase warning. Signed-off-by: Ethan Tidmore Link: https://patch.msgid.link/20260127012118.43037-6-ethantidmore06@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index 3557d7365585..cbbdf45012c4 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -160,7 +160,6 @@ struct registry_priv { u8 reg_enable_tx_power_by_rate; u8 reg_power_base; u8 reg_pwr_tbl_sel; - s8 TxBBSwing_2G; u8 AmplifierType_2G; u8 bEn_RFE; u8 RFE_Type; diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 02e01f0f0bf4..f4b2be4296c9 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -263,7 +263,6 @@ static void loadparam(struct adapter *padapter, struct net_device *pnetdev) registry_par->reg_enable_tx_power_by_rate = (u8)rtw_tx_pwr_by_rate; registry_par->reg_power_base = 14; - registry_par->TxBBSwing_2G = 0xFF; registry_par->bEn_RFE = 1; registry_par->RFE_Type = 64;