Commit 6b56d245 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: rtl8192e: remove some dead code

We don't use the rxcmdpkt[] counters at all and we can remove them.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
ACKed-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7738eda
...@@ -342,7 +342,6 @@ static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg) ...@@ -342,7 +342,6 @@ static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg)
u32 cmpk_message_handle_rx(struct net_device *dev, u32 cmpk_message_handle_rx(struct net_device *dev,
struct rtllib_rx_stats *pstats) struct rtllib_rx_stats *pstats)
{ {
struct r8192_priv *priv = rtllib_priv(dev);
int total_length; int total_length;
u8 cmd_length, exe_cnt = 0; u8 cmd_length, exe_cnt = 0;
u8 element_id; u8 element_id;
...@@ -409,8 +408,6 @@ u32 cmpk_message_handle_rx(struct net_device *dev, ...@@ -409,8 +408,6 @@ u32 cmpk_message_handle_rx(struct net_device *dev,
return 1; return 1;
} }
priv->stats.rxcmdpkt[element_id]++;
total_length -= cmd_length; total_length -= cmd_length;
pcmd_buff += cmd_length; pcmd_buff += cmd_length;
} }
......
...@@ -353,7 +353,6 @@ struct rt_stats { ...@@ -353,7 +353,6 @@ struct rt_stats {
unsigned long rxrdu; unsigned long rxrdu;
unsigned long rxok; unsigned long rxok;
unsigned long rxframgment; unsigned long rxframgment;
unsigned long rxcmdpkt[8];
unsigned long rxurberr; unsigned long rxurberr;
unsigned long rxstaterr; unsigned long rxstaterr;
unsigned long rxdatacrcerr; unsigned long rxdatacrcerr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment