summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-07-15 22:14:22 +0000
committerjmg <jmg@FreeBSD.org>2003-07-15 22:14:22 +0000
commit0853c5dd336973f3b4864d02e389b9e85bf016aa (patch)
tree54dbdee07b313078c48af981b83d672b3bd00c61 /sys
parent58acc5cc7759d48d4657b2cebf6cae1b298b4c73 (diff)
downloadFreeBSD-src-0853c5dd336973f3b4864d02e389b9e85bf016aa.zip
FreeBSD-src-0853c5dd336973f3b4864d02e389b9e85bf016aa.tar.gz
minor white space fix up
initalize itds remove extra htole32. Things don't work to well when you do htole32(htole32(var))
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ohci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index f73d3da..f48d918 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -515,7 +515,7 @@ ohci_alloc_std_chain(struct ohci_pipe *opipe, ohci_softc_t *sc,
dataphys = DMAADDR(dma, 0);
dataphysend = OHCI_PAGE(DMAADDR(dma, len - 1));
- tdflags = htole32(
+ tdflags = (
(rd ? OHCI_TD_IN : OHCI_TD_OUT) |
(flags & USBD_SHORT_XFER_OK ? OHCI_TD_R : 0) |
OHCI_TD_NOCC | OHCI_TD_TOGGLE_CARRY);
@@ -724,6 +724,8 @@ ohci_init(ohci_softc_t *sc)
sc->sc_bus.usbrev = USBREV_1_0;
for (i = 0; i < OHCI_HASH_SIZE; i++)
+ LIST_INIT(&sc->sc_hash_tds[i]);
+ for (i = 0; i < OHCI_HASH_SIZE; i++)
LIST_INIT(&sc->sc_hash_itds[i]);
SIMPLEQ_INIT(&sc->sc_free_xfers);
@@ -1162,7 +1164,7 @@ ohci_intr1(ohci_softc_t *sc)
return (0);
}
- intrs = 0;
+ intrs = 0;
done = le32toh(sc->sc_hcca->hcca_done_head);
/* The LSb of done is used to inform the HC Driver that an interrupt
OpenPOWER on IntegriCloud