mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
staging: rtl8192e: Remove unused variables rxrdu and rxok
rxrdu and rxok 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/20738d339066e36f5347c7e5011bd3d1aa3e4f53.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
f9a8a19230
commit
29c6d93948
@@ -1938,7 +1938,6 @@ static void _rtl92e_rx_normal(struct net_device *dev)
|
||||
if (!rtllib_rx(priv->rtllib, skb, &stats)) {
|
||||
dev_kfree_skb_any(skb);
|
||||
} else {
|
||||
priv->stats.rxok++;
|
||||
if (unicast_packet)
|
||||
priv->stats.rxbytesunicast += skb_len;
|
||||
}
|
||||
@@ -2186,7 +2185,6 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev)
|
||||
tasklet_schedule(&priv->irq_prepare_beacon_tasklet);
|
||||
|
||||
if (inta & IMR_RDU) {
|
||||
priv->stats.rxrdu++;
|
||||
rtl92e_writel(dev, INTA_MASK,
|
||||
rtl92e_readl(dev, INTA_MASK) & ~IMR_RDU);
|
||||
tasklet_schedule(&priv->irq_rx_tasklet);
|
||||
|
||||
@@ -183,8 +183,6 @@ enum reset_type {
|
||||
};
|
||||
|
||||
struct rt_stats {
|
||||
unsigned long rxrdu;
|
||||
unsigned long rxok;
|
||||
unsigned long rxdatacrcerr;
|
||||
unsigned long rxmgmtcrcerr;
|
||||
unsigned long rxcrcerrmin;
|
||||
|
||||
Reference in New Issue
Block a user