提交 0d1cfd20 编写于 作者: R roel kluin 提交者: David S. Miller

via-velocity: fix hot spin

while(--j >= 0) keeps spinning when j is unsigned:
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e3fd5534
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册