浏览代码

drivers/net/cxgb3/xgmac.c: remove dead code

This patch removes dead code ("tx_xcnt" can never be != 0 at this place)
spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Adrian Bunk 17 年之前
父节点
当前提交
0da18e3883
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      drivers/net/cxgb3/xgmac.c

+ 1 - 4
drivers/net/cxgb3/xgmac.c

@@ -522,10 +522,7 @@ int t3b2_mac_watchdog_task(struct cmac *mac)
 		goto rxcheck;
 		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) {
 		if (mac->toggle_cnt > 4) {
 			status = 2;
 			status = 2;
 			goto out;
 			goto out;