From d7d057c585d62356f47b7fa9aefdf8f9d6211d0e Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 3 Jul 2004 02:10:52 +0000 Subject: [PATCH] Unbreak -O2 build: initialize nstatus to avoid uninitialized warning. --- sys/dev/usb/ehci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 46c34a99ccd4..6a85bb116886 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)