diff --git a/sys/src/9/pc/usbxhci.c b/sys/src/9/pc/usbxhci.c index 8925df257..489de15a3 100644 --- a/sys/src/9/pc/usbxhci.c +++ b/sys/src/9/pc/usbxhci.c @@ -800,7 +800,7 @@ completering(Ring *r, u32int *er) pa = (*(u64int*)er) & ~15ULL; ilock(r); - for(x = r->rp; (int)(r->wp - x) > 0; x++){ + for(x = r->rp; (int)(r->wp - x) > 0;){ td = &r->base[4*(x++ & r->mask)]; if((u64int)PADDR(td) == pa){ r->rp = x;