mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 07:51:16 -04:00
staging: rtl8192e: Remove unused variables rxdatacrcerr and rxmgmtcrcerr
rxdatacrcerr and rxmgmtcrcerr are initialized and increased but never read. Remove dead code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/32c9183fa2f4edd24ae6f93d56b808eb1821832b.1674675808.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
29c6d93948
commit
baa988e1b7
@@ -1926,13 +1926,6 @@ static void _rtl92e_rx_normal(struct net_device *dev)
|
||||
priv->rtllib->LedControlHandler(dev,
|
||||
LED_CTL_RX);
|
||||
|
||||
if (stats.bCRC) {
|
||||
if (type != RTLLIB_FTYPE_MGMT)
|
||||
priv->stats.rxdatacrcerr++;
|
||||
else
|
||||
priv->stats.rxmgmtcrcerr++;
|
||||
}
|
||||
|
||||
skb_len = skb->len;
|
||||
|
||||
if (!rtllib_rx(priv->rtllib, skb, &stats)) {
|
||||
|
||||
@@ -183,8 +183,6 @@ enum reset_type {
|
||||
};
|
||||
|
||||
struct rt_stats {
|
||||
unsigned long rxdatacrcerr;
|
||||
unsigned long rxmgmtcrcerr;
|
||||
unsigned long rxcrcerrmin;
|
||||
unsigned long rxcrcerrmid;
|
||||
unsigned long rxcrcerrmax;
|
||||
|
||||
Reference in New Issue
Block a user