Staging: rtl8192e: remove some dead code
Subsystems (2)
PATCH 1/1 Staging: rtl8192e: remove some dead code
We don't use the rxcmdpkt[] counters at all and we can remove them.
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/rtl8192e/rtl8192e/rtl_core.h +0 -1
@@ -353,7 +353,6 @@ struct rt_stats {unsigned long rxrdu;unsigned long rxok;unsigned long rxframgment; -unsigned long rxcmdpkt[8 ];unsigned long rxurberr;unsigned long rxstaterr;unsigned long rxdatacrcerr;
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +0 -3
@@ -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,struct rtllib_rx_stats *pstats) { -struct r8192_priv *priv =rtllib_priv (dev);int total_length;u8 cmd_length, exe_cnt =0 ;u8 element_id;
@@ -409,8 +408,6 @@ u32 cmpk_message_handle_rx(struct net_device *dev,return 1 ; } - priv->stats.rxcmdpkt[element_id]++; - total_length -= cmd_length; pcmd_buff += cmd_length; }
Quoted 4 lines · Dan Carpenter
We don't use the rxcmdpkt[] counters at all and we can remove them.
Signed-off-by Dan Carpenter<[email protected]>
Acked-by Larry Finger <[email protected]>
Quoted 34 lines
drivers/staging/rtl8192e/rtl8192e/rtl_core.h +0
-1@@ -353,7 +353,6 @@ struct rt_stats {unsigned long rxrdu;unsigned long rxok;unsigned long rxframgment; -unsigned long rxcmdpkt[8 ];unsigned long rxurberr;unsigned long rxstaterr;unsigned long rxdatacrcerr;drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +0
-3@@ -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,struct rtllib_rx_stats *pstats) { -struct r8192_priv *priv =rtllib_priv (dev);int total_length;u8 cmd_length, exe_cnt =0 ;u8 element_id;@@ -409,8 +408,6 @@ u32 cmpk_message_handle_rx(struct net_device *dev,return 1 ; } - priv->stats.rxcmdpkt[element_id]++; - total_length -= cmd_length; pcmd_buff += cmd_length; }