summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-03 02:10:52 +0000
committermarcel <marcel@FreeBSD.org>2004-07-03 02:10:52 +0000
commit4c8ddc3ef6e967e1594b67ef69c63d7809530bff (patch)
treea38d0e9b1a667ab67b4b7888d97cdd448e12f126
parent82e3e73431e86800bb7c77fdd2a69c65e5691c72 (diff)
downloadFreeBSD-src-4c8ddc3ef6e967e1594b67ef69c63d7809530bff.zip
FreeBSD-src-4c8ddc3ef6e967e1594b67ef69c63d7809530bff.tar.gz
Unbreak -O2 build: initialize nstatus to avoid uninitialized warning.
-rw-r--r--sys/dev/usb/ehci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 46c34a9..6a85bb1 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -725,7 +725,7 @@ ehci_idone(struct ehci_xfer *ex)
usbd_xfer_handle xfer = &ex->xfer;
struct ehci_pipe *epipe = (struct ehci_pipe *)xfer->pipe;
ehci_soft_qtd_t *sqtd;
- u_int32_t status = 0, nstatus;
+ u_int32_t status, nstatus;
int actlen;
DPRINTFN(/*12*/2, ("ehci_idone: ex=%p\n", ex));
@@ -761,6 +761,8 @@ ehci_idone(struct ehci_xfer *ex)
/* The transfer is done, compute actual length and status. */
actlen = 0;
+ nstatus = 0;
+ status = 0;
for (sqtd = ex->sqtdstart; sqtd != NULL; sqtd = sqtd->nextqtd) {
nstatus = le32toh(sqtd->qtd.qtd_status);
if (nstatus & EHCI_QTD_ACTIVE)
OpenPOWER on IntegriCloud