Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d1cfd20 authored by roel kluin's avatar roel kluin Committed by David S. Miller
Browse files

via-velocity: fix hot spin



while(--j >= 0) keeps spinning when j is unsigned:

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3fd5534
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1302,7 +1302,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr)
static int velocity_init_td_ring(struct velocity_info *vptr)
static int velocity_init_td_ring(struct velocity_info *vptr)
{
{
	dma_addr_t curr;
	dma_addr_t curr;
	unsigned int j;
	int j;


	/* Init the TD ring entries */
	/* Init the TD ring entries */
	for (j = 0; j < vptr->tx.numq; j++) {
	for (j = 0; j < vptr->tx.numq; j++) {