Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:49 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6ccdcae1b9a6 - main - uhci_xfer_setup: eliminate write only variable sc
Message-ID:  <202204050432.2354WnST009512@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=6ccdcae1b9a693ffddf724cf850424e3b291bca1

commit 6ccdcae1b9a693ffddf724cf850424e3b291bca1
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:27:58 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:29 +0000

    uhci_xfer_setup: eliminate write only variable sc
    
    Sponsored by:           Netflix
---
 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 4c72118d9900..28ae5cd37879 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -2772,7 +2772,6 @@ uhci_xfer_setup(struct usb_setup_params *parm)
 {
 	struct usb_page_search page_info;
 	struct usb_page_cache *pc;
-	uhci_softc_t *sc;
 	struct usb_xfer *xfer;
 	void *last_obj;
 	uint32_t ntd;
@@ -2781,7 +2780,6 @@ uhci_xfer_setup(struct usb_setup_params *parm)
 	uint32_t n;
 	uint16_t align;
 
-	sc = UHCI_BUS2SC(parm->udev->bus);
 	xfer = parm->curr_xfer;
 
 	parm->hc_max_packet_size = 0x500;



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