Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0da18e38 authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 007755eb
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -522,10 +522,7 @@ int t3b2_mac_watchdog_task(struct cmac *mac)
		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;