Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: Remove unused variables ntotalfrag and Seq_Num

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>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
7fd0eae5 fcd3b816

-10
-8
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
··· 1346 1346 static u32 slide_beacon_adc_pwdb_index; 1347 1347 static u32 slide_beacon_adc_pwdb_statistics; 1348 1348 static u32 last_beacon_adc_pwdb; 1349 - struct ieee80211_hdr_3addr *hdr; 1350 - u16 sc; 1351 - unsigned int seq; 1352 1349 1353 - hdr = (struct ieee80211_hdr_3addr *)buffer; 1354 - sc = le16_to_cpu(hdr->seq_ctrl); 1355 - seq = WLAN_GET_SEQ_SEQ(sc); 1356 - curr_st->Seq_Num = seq; 1357 1350 if (!prev_st->bIsAMPDU) 1358 1351 bcheck = true; 1359 1352 ··· 1665 1672 _rtl92e_translate_rx_signal_stats(dev, skb, stats, pdesc, pDrvInfo); 1666 1673 skb_trim(skb, skb->len - S_CRC_LEN); 1667 1674 1668 - stats->ntotalfrag = 1; 1669 1675 return true; 1670 1676 } 1671 1677
-2
drivers/staging/rtl8192e/rtllib.h
··· 496 496 bool bPacketMatchBSSID; 497 497 bool bIsCCK; 498 498 bool bPacketToSelf; 499 - u16 ntotalfrag; 500 499 bool bPacketBeacon; 501 500 bool bToSelfBA; 502 - u16 Seq_Num; 503 501 }; 504 502 505 503 /* IEEE 802.11 requires that STA supports concurrent reception of at least