staging: rtl8192e: Remove unused variables ntotalfrag and Seq_Num
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 21 Feb 2024 21:46:01 +0000 (22:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:02:41 +0000 (14:02 +0000)
Remove unused variables ntotalfrag and Seq_Num as they are set and never
evaluated. Remove resulting local variables seq, sc and hdr as well.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4a3f2d217631076ee9994b46f8672eceaea8568c.1708461563.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtllib.h

index f1e97da8f077c54c023ea19c3b7964e20fcc6a81..b54dbc97d4bae5afce34e4cb7ff48a07d4de6293 100644 (file)
@@ -1346,14 +1346,7 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
        static u32 slide_beacon_adc_pwdb_index;
        static u32 slide_beacon_adc_pwdb_statistics;
        static u32 last_beacon_adc_pwdb;
-       struct ieee80211_hdr_3addr *hdr;
-       u16 sc;
-       unsigned int seq;
 
-       hdr = (struct ieee80211_hdr_3addr *)buffer;
-       sc = le16_to_cpu(hdr->seq_ctrl);
-       seq = WLAN_GET_SEQ_SEQ(sc);
-       curr_st->Seq_Num = seq;
        if (!prev_st->bIsAMPDU)
                bcheck = true;
 
@@ -1672,7 +1665,6 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
        _rtl92e_translate_rx_signal_stats(dev, skb, stats, pdesc, pDrvInfo);
        skb_trim(skb, skb->len - S_CRC_LEN);
 
-       stats->ntotalfrag = 1;
        return true;
 }
 
index 6b33643ddae0886135352974ccf607a650e90be9..c1816972545247ce9f198f108057263297f7ed01 100644 (file)
@@ -496,10 +496,8 @@ struct rtllib_rx_stats {
        bool  bPacketMatchBSSID;
        bool  bIsCCK;
        bool  bPacketToSelf;
-       u16    ntotalfrag;
        bool   bPacketBeacon;
        bool   bToSelfBA;
-       u16    Seq_Num;
 };
 
 /* IEEE 802.11 requires that STA supports concurrent reception of at least