From e65f8c784da3c397d24361dafd42a14954bf650c Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 15 Jul 2003 22:14:22 +0000 Subject: minor white space fix up initalize itds remove extra htole32. Things don't work to well when you do htole32(htole32(var)) --- sys/dev/usb/ohci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index f73d3dada837c..f48d9182715dd 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); @@ -723,6 +723,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]); @@ -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 -- cgit v1.3