]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove unused variable bEn_RFE
authorEthan Tidmore <ethantidmore06@gmail.com>
Tue, 27 Jan 2026 01:21:17 +0000 (19:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2026 14:51:15 +0000 (15:51 +0100)
The variable bEn_RFE 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 <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260127012118.43037-8-ethantidmore06@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/drv_types.h
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index 64a2ffd45563a40f567f37a0e71a9dd40338eec1..00da21774c4dd030ed35785f58bdda2c1724a328 100644 (file)
@@ -160,7 +160,6 @@ struct registry_priv {
        u8 reg_enable_tx_power_by_rate;
        u8 reg_power_base;
        u8 reg_pwr_tbl_sel;
-       u8 bEn_RFE;
        u8 RFE_Type;
        u8  check_fw_ps;
 
index f4b2be4296c9a97677bde9c4db89be4dafd71f9f..c163e2eeea2608f9523388aedf8b1740126beedf 100644 (file)
@@ -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->bEn_RFE = 1;
        registry_par->RFE_Type = 64;
 
        registry_par->qos_opt_enable = (u8)rtw_qos_opt_enable;