]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: hw_var_port_switch is empty
authorMichael Straube <straube.linux@gmail.com>
Tue, 22 Jul 2025 07:41:13 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 09:31:19 +0000 (11:31 +0200)
The function hw_var_port_switch is empty, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250722074115.35044-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/include/hal_com.h

index d91e2461fd7e4e8f8405d5865c0b1157753a9e87..07e9d34236517876d2f39ede8cc143214c93446c 100644 (file)
@@ -569,19 +569,12 @@ void rtw_hal_update_sta_rate_mask(struct adapter *padapter, struct sta_info *pst
        psta->init_rate = get_highest_rate_idx(tx_ra_bitmap)&0x3f;
 }
 
-void hw_var_port_switch(struct adapter *adapter)
-{
-}
-
 void SetHwReg(struct adapter *adapter, u8 variable, u8 *val)
 {
        struct hal_com_data *hal_data = GET_HAL_DATA(adapter);
        struct dm_odm_t *odm = &(hal_data->odmpriv);
 
        switch (variable) {
-       case HW_VAR_PORT_SWITCH:
-               hw_var_port_switch(adapter);
-               break;
        case HW_VAR_INIT_RTS_RATE:
                rtw_warn_on(1);
                break;
index 258a74076dd9da50b7213375620f4493cff6cccf..7ea9ee2b397584d765ca162b0d4244f83263efb6 100644 (file)
@@ -134,8 +134,6 @@ s32 c2h_evt_read_88xx(struct adapter *adapter, u8 *buf);
 u8 rtw_get_mgntframe_raid(struct adapter *adapter, unsigned char network_type);
 void rtw_hal_update_sta_rate_mask(struct adapter *padapter, struct sta_info *psta);
 
-void hw_var_port_switch(struct adapter *adapter);
-
 void SetHwReg(struct adapter *padapter, u8 variable, u8 *val);
 void GetHwReg(struct adapter *padapter, u8 variable, u8 *val);
 void rtw_hal_check_rxfifo_full(struct adapter *adapter);