Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2022 23:46:01 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8c3923ae2fef - main - uhci: Remove write-only variable.
Message-ID:  <202204062346.236Nk1he008690@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=8c3923ae2fef4c337d87705165c3eb671aab5476

commit 8c3923ae2fef4c337d87705165c3eb671aab5476
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:27 +0000

    uhci: Remove write-only variable.
---
 sys/dev/usb/controller/uhci.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c
index 28ae5cd37879..e3189f23c7de 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -1295,7 +1295,6 @@ static uint8_t
 uhci_check_transfer(struct usb_xfer *xfer)
 {
 	uint32_t status;
-	uint32_t token;
 	uhci_td_t *td;
 
 	DPRINTFN(16, "xfer=%p checking transfer\n", xfer);
@@ -1332,7 +1331,6 @@ uhci_check_transfer(struct usb_xfer *xfer)
 		while (1) {
 			usb_pc_cpu_invalidate(td->page_cache);
 			status = le32toh(td->td_status);
-			token = le32toh(td->td_token);
 
 			/*
 			 * if there is an active TD the transfer isn't done



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204062346.236Nk1he008690>