staging: rtl8192e: Remove constant variable reg_rx_reorder_enable
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 13 Dec 2023 16:52:55 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 12:37:33 +0000 (13:37 +0100)
Remove constant variable reg_rx_reorder_enable and replace it at the place
of usage with the value.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/c9bf183b78bfe1fc242dc496786cd0c9f20262a4.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c

index 514ac9e1f3f88499a369b5e05fe34d74c267d0f9..2911ea82dd17897058135e331c54faf3b830a8a4 100644 (file)
@@ -115,7 +115,6 @@ struct rt_hi_throughput {
        u8 current_rt2rt_aggregation;
        u8 current_rt2rt_long_slot_time;
        u8 sz_rt2rt_agg_buf[10];
-       u8 reg_rx_reorder_enable;
        u8 cur_rx_reorder_enable;
        u8 rx_reorder_win_size;
        u8 rx_reorder_pending_time;
index fdd3b6018867c9220f8442548236f84ae5d812c4..8836054d6897a8b1017e142662f2e6b5c633cc5d 100644 (file)
@@ -79,7 +79,6 @@ void ht_update_default_setting(struct rtllib_device *ieee)
 
        ieee->tx_enable_fw_calc_dur = 1;
 
-       ht_info->reg_rx_reorder_enable = 1;
        ht_info->rx_reorder_win_size = 64;
        ht_info->rx_reorder_pending_time = 30;
 }
@@ -484,7 +483,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
        if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) {
                ht_info->current_ampdu_enable = false;
        }
-       ht_info->cur_rx_reorder_enable = ht_info->reg_rx_reorder_enable;
+       ht_info->cur_rx_reorder_enable = 1;
 
        if (pPeerHTCap->MCS[0] == 0)
                pPeerHTCap->MCS[0] = 0xff;