diff options
author | Giorgos Keramidas <keramida@FreeBSD.org> | 2005-01-05 20:10:05 +0000 |
---|---|---|
committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2005-01-05 20:10:05 +0000 |
commit | 285d9e0fa79a84f8c29de5b53bf8e352eb393b23 (patch) | |
tree | 99d391bd7006834b48e98550fa71590a6fa0300e /sys | |
parent | cc1d7d872ed08616bb4ba8cc1270a5f536e64d80 (diff) | |
download | src-285d9e0fa79a84f8c29de5b53bf8e352eb393b23.tar.gz src-285d9e0fa79a84f8c29de5b53bf8e352eb393b23.zip |
Fix KASSERT inversion that was introduced in 1.150, resulting in instant
panic curlen != 0, which is perfectly normal.
Approved by: mux
Notes
Notes:
svn path=/head/; revision=139729
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 11a50493980b..3cafad713ef1 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -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", |