Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2022 04:29:59 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 61181185cf15 - stable/13 - uhci_xfer_setup: eliminate write only variable sc
Message-ID:  <202210020429.2924TxSu058941@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=61181185cf15eb7799b318e5cb61629366d13885

commit 61181185cf15eb7799b318e5cb61629366d13885
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:33 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:55 +0000

    uhci_xfer_setup: eliminate write only variable sc
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 6ccdcae1b9a693ffddf724cf850424e3b291bca1)
---
 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?202210020429.2924TxSu058941>