Fix KASSERT inversion that was introduced in 1.150, resulting in instant

panic curlen != 0, which is perfectly normal.

Approved by:	mux
This commit is contained in:
keramida 2005-01-05 20:10:05 +00:00
parent 12383c3473
commit 29b6957a62

View File

@ -573,7 +573,7 @@ ohci_alloc_std_chain(struct ohci_pipe *opipe, ohci_softc_t *sc,
/* the length must be a multiple of the max size */
curlen -= curlen %
UGETW(opipe->pipe.endpoint->edesc->wMaxPacketSize);
KASSERT ((curlen == 0), ("ohci_alloc_std: curlen == 0"));
KASSERT((curlen != 0), ("ohci_alloc_std: curlen == 0"));
}
DPRINTFN(4,("ohci_alloc_std_chain: dataphys=0x%08x "
"len=%d curlen=%d\n",