Subject: [PATCH] cassini: i reaches 0, not -1.

From: Roel Kluin <[email-masked]>
Date: Mon, 09 Feb 2009 23:12:02 +0100

With while (i-- > 0) { ... } i reaches 0, not -1.

Signed-off-by: Roel Kluin <[email-masked]>
---
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index bbbc3bb..2de2cdf 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -3568,7 +3568,7 @@ static inline void cas_start_dma(struct cas *cp)
 			break;
 		udelay(10);
 	}
-	if (i < 0) txfailed = 1;
+	if (i <= 0) txfailed = 1;
 	i = STOP_TRIES;
 	while (i-- > 0) {
 		val = readl(cp->regs + REG_MAC_RX_CFG);