aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2003-03-11 09:12:55 +0000
committerIan Dowse <iedowse@FreeBSD.org>2003-03-11 09:12:55 +0000
commitec8b828fc4710eff245d9101b344e37051962882 (patch)
tree367079608a876b3f1d55c2ab83956c8007c935a8 /sys/dev
parent29568c01916dde036ede945683b7a9d02f489592 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uhci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 4bb24a1fec64..34012f1bea80 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1511,11 +1511,10 @@ uhci_waitintr(uhci_softc_t *sc, usbd_xfer_handle xfer)
for (; timo >= 0; timo--) {
usb_delay_ms(&sc->sc_bus, 1);
DPRINTFN(20,("uhci_waitintr: 0x%04x\n", UREAD2(sc, UHCI_STS)));
- if (UREAD2(sc, UHCI_STS) & UHCI_STS_USBINT) {
+ if (UREAD2(sc, UHCI_STS) & UHCI_STS_USBINT)
uhci_intr1(sc);
- if (xfer->status != USBD_IN_PROGRESS)
- return;
- }
+ if (xfer->status != USBD_IN_PROGRESS)
+ return;
}
/* Timeout */