diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-01-17 12:14:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 23:44:01 +0100 |
commit | 0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6 (patch) | |
tree | 92d7729962d07e07bfcc84fcdfb5e63f412688aa /drivers/net/via-velocity.c | |
parent | myri10ge: don't forget pci_disable_device() (diff) | |
download | linux-0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6.tar.xz linux-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 '')
-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++) { |