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

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>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
fcd3b816 ae2c814e

-4
-2
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
··· 1659 1659 1660 1660 stats->rate = _rtl92e_rate_hw_to_mgn((bool)pDrvInfo->RxHT, 1661 1661 pDrvInfo->RxRate); 1662 - stats->bShortPreamble = pDrvInfo->SPLCP; 1663 1662 1664 1663 _rtl92e_update_received_rate_histogram_stats(dev, stats); 1665 1664 ··· 1672 1673 _rtl92e_translate_rx_signal_stats(dev, skb, stats, pdesc, pDrvInfo); 1673 1674 skb_trim(skb, skb->len - S_CRC_LEN); 1674 1675 1675 - stats->fragoffset = 0; 1676 1676 stats->ntotalfrag = 1; 1677 1677 return true; 1678 1678 }
-2
drivers/staging/rtl8192e/rtllib.h
··· 481 481 u16 bHwError:1; 482 482 u16 bCRC:1; 483 483 u16 bICV:1; 484 - u16 bShortPreamble:1; 485 484 u16 Decrypted:1; 486 485 u32 TimeStampLow; 487 486 u32 TimeStampHigh; ··· 496 497 bool bPacketMatchBSSID; 497 498 bool bIsCCK; 498 499 bool bPacketToSelf; 499 - u16 fragoffset; 500 500 u16 ntotalfrag; 501 501 bool bPacketBeacon; 502 502 bool bToSelfBA;