Skip to content

Commit

Permalink
via-velocity: fix hot spin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
roel kluin authored and David S. Miller committed Jan 20, 2009
1 parent e3fd553 commit 0d1cfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 0d1cfd2

Please sign in to comment.