diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-01-17 11:14:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 14:44:01 -0800 |
commit | 0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6 (patch) | |
tree | 92d7729962d07e07bfcc84fcdfb5e63f412688aa /drivers | |
parent | e3fd553468738e0342cbd82a63ede00c983a0eb4 (diff) | |
download | kernel-common-0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6.tar.gz kernel-common-0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6.tar.bz2 kernel-common-0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6.zip |
via-velocity: fix hot spin
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/via-velocity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index a75f91dc3153..c5691fdb7079 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c @@ -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++) { |