via-velocity: fix hot spin
authorroel kluin <roel.kluin@gmail.com>
Sat, 17 Jan 2009 11:14:31 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 22:44:01 +0000 (14:44 -0800)
while(--j >= 0) keeps spinning when j is unsigned:

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/via-velocity.c

index a75f91dc315315d5352696d246ca2cb1f6141815..c5691fdb70799a6f56d00a0d1e65bcdc7408de31 100644 (file)
@@ -1302,7 +1302,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr)
 static int velocity_init_td_ring(struct velocity_info *vptr)
 {
        dma_addr_t curr;
-       unsigned int j;
+       int j;
 
        /* Init the TD ring entries */
        for (j = 0; j < vptr->tx.numq; j++) {