drivers/net/cxgb3/xgmac.c: remove dead code
Subsystems (2)
PATCH 3/13 drivers/net/cxgb3/xgmac.c: remove dead code
From: Adrian Bunk <[email protected]>
This patch removes dead code ("tx_xcnt" can never be != 0 at this place) spotted by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/cxgb3/xgmac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/cxgb3/xgmac.c renamed from drivers/net/cxgb3/xgmac.c~drivers-net-cxgb3-xgmacc-remove-dead-code +1 -4
@@ -522,10 +522,7 @@ int t3b2_mac_watchdog_task(struct cmac * goto rxcheck; } -if (((tx_tcnt != mac->tx_tcnt) && - (tx_xcnt ==0 ) && (mac->tx_xcnt ==0 )) || - ((mac->tx_mcnt == tx_mcnt) && - (tx_xcnt !=0 ) && (mac->tx_xcnt !=0 ))) { +if ((tx_tcnt != mac->tx_tcnt) && (mac->tx_xcnt ==0 )) {if (mac->toggle_cnt >4 ) { status =2 ; goto out;
_