via-velocity: fix hot spin
Subsystems (2)
PATCH 1/1 via-velocity: fix hot spin
while(--j >= 0) keeps spinning when j is unsigned:
Signed-off-by Roel Kluin <[email protected]>
---
drivers/net/via-velocity.c +1 -1
@@ -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++) {
From: Roel Kluin <[email protected]>
Date: Sat, 17 Jan 2009 22:14:31 +0100
Quoted 3 lines
while(--j >= 0) keeps spinning when j is unsigned:
Signed-off-by Roel Kluin <[email protected]>
Applied, thanks Roel.