mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 15:51:40 -04:00
staging: rtl8192e: Remove unused variables bShortPreamble and fragoffset
Remove unused variables bShortPreamble and fragoffset as they are set and never evaluated. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/17c516c195acc458366ab182e0fd1200b7e2b1da.1708461563.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ae2c814ec4
commit
fcd3b81661
@@ -1659,7 +1659,6 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
|
||||
|
||||
stats->rate = _rtl92e_rate_hw_to_mgn((bool)pDrvInfo->RxHT,
|
||||
pDrvInfo->RxRate);
|
||||
stats->bShortPreamble = pDrvInfo->SPLCP;
|
||||
|
||||
_rtl92e_update_received_rate_histogram_stats(dev, stats);
|
||||
|
||||
@@ -1673,7 +1672,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->fragoffset = 0;
|
||||
stats->ntotalfrag = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -481,7 +481,6 @@ struct rtllib_rx_stats {
|
||||
u16 bHwError:1;
|
||||
u16 bCRC:1;
|
||||
u16 bICV:1;
|
||||
u16 bShortPreamble:1;
|
||||
u16 Decrypted:1;
|
||||
u32 TimeStampLow;
|
||||
u32 TimeStampHigh;
|
||||
@@ -497,7 +496,6 @@ struct rtllib_rx_stats {
|
||||
bool bPacketMatchBSSID;
|
||||
bool bIsCCK;
|
||||
bool bPacketToSelf;
|
||||
u16 fragoffset;
|
||||
u16 ntotalfrag;
|
||||
bool bPacketBeacon;
|
||||
bool bToSelfBA;
|
||||
|
||||
Reference in New Issue
Block a user