mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
staging: rtl8192e: Remove variables fraglength and packetlength
Remove unused variables fraglength and packetlength as they are set and never evaluated. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/cca48e6e3d4d32010699118d55fd82b1dbc6eda6.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
fa7b3605bc
commit
675fca7ff1
@@ -1674,9 +1674,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->packetlength = stats->Length - 4;
|
||||
stats->fraglength = stats->packetlength;
|
||||
stats->fragoffset = 0;
|
||||
stats->ntotalfrag = 1;
|
||||
return true;
|
||||
|
||||
@@ -499,8 +499,6 @@ struct rtllib_rx_stats {
|
||||
bool bPacketMatchBSSID;
|
||||
bool bIsCCK;
|
||||
bool bPacketToSelf;
|
||||
u16 packetlength;
|
||||
u16 fraglength;
|
||||
u16 fragoffset;
|
||||
u16 ntotalfrag;
|
||||
bool bPacketBeacon;
|
||||
|
||||
Reference in New Issue
Block a user