staging: rtl8192e: Remove variable ht_info->RT2RT_HT_Mode
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 13 Dec 2023 16:52:38 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 12:37:33 +0000 (13:37 +0100)
Remove variable ht_info->RT2RT_HT_Mode as it is always set but never
evaluated.

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

index 72e89ccfb18403466b92c7370b6f6d7cb4c7ffbf..bef04223311765485439af1b16b63df8554fe848 100644 (file)
@@ -287,7 +287,6 @@ static void _rtl92e_update_beacon(void *data)
        if (ieee->ht_info->current_ht_support)
                HT_update_self_and_peer_setting(ieee, net);
        ieee->ht_info->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time;
-       ieee->ht_info->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode;
        _rtl92e_update_cap(dev, net->capability);
 }
 
index 1da56f1c04eb03444682620f778a2d2ab1f096f8..315905fa4b2c46b6eece27ae4a1eeb9e382df6b8 100644 (file)
@@ -113,7 +113,6 @@ struct rt_hi_throughput {
        u8 cur_tx_bw40mhz;
        u8 sw_bw_in_progress;
        u8 reg_rt2rt_aggregation;
-       u8 RT2RT_HT_Mode;
        u8 current_rt2rt_aggregation;
        u8 current_rt2rt_long_slot_time;
        u8 sz_rt2rt_agg_buf[10];
index de5e3c99e03ad6ab4b876e7e21b9675822c2f772..23ffd0c0dce53d6f48940cc60a83f7d5aaf4ccf6 100644 (file)
@@ -540,7 +540,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)
 
        ht_info->current_rt2rt_aggregation = false;
        ht_info->current_rt2rt_long_slot_time = false;
-       ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
 
        ht_info->iot_peer = 0;
        ht_info->iot_action = 0;
@@ -601,11 +600,9 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
                                 pNetwork->bssht.bd_rt2rt_aggregation;
                        ht_info->current_rt2rt_long_slot_time =
                                 pNetwork->bssht.bd_rt2rt_long_slot_time;
-                       ht_info->RT2RT_HT_Mode = pNetwork->bssht.rt2rt_ht_mode;
                } else {
                        ht_info->current_rt2rt_aggregation = false;
                        ht_info->current_rt2rt_long_slot_time = false;
-                       ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
                }
 
                ht_iot_peer_determine(ieee);
@@ -621,7 +618,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
                ht_info->current_ht_support = false;
                ht_info->current_rt2rt_aggregation = false;
                ht_info->current_rt2rt_long_slot_time = false;
-               ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
 
                ht_info->iot_action = 0;
                ht_info->iot_ra_func = 0;