git: 12312f75838e - main - uss820dci: eliminate unused variables sc, ep_no

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:50 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=12312f75838e49635909f5ad4ba9e9688a3073b7

commit 12312f75838e49635909f5ad4ba9e9688a3073b7
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:28:29 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:31 +0000

    uss820dci: eliminate unused variables sc, ep_no
    
    Sponsored by:           Netflix
---
 sys/dev/usb/controller/uss820dci.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys/dev/usb/controller/uss820dci.c b/sys/dev/usb/controller/uss820dci.c
index 7bbfdace3e72..965437fa1dc5 100644
--- a/sys/dev/usb/controller/uss820dci.c
+++ b/sys/dev/usb/controller/uss820dci.c
@@ -878,10 +878,8 @@ static void
 uss820dci_setup_standard_chain(struct usb_xfer *xfer)
 {
 	struct uss820_std_temp temp;
-	struct uss820dci_softc *sc;
 	struct uss820dci_td *td;
 	uint32_t x;
-	uint8_t ep_no;
 
 	DPRINTFN(9, "addr=%d endpt=%d sumlen=%d speed=%d\n",
 	    xfer->address, UE_GET_ADDR(xfer->endpointno),
@@ -903,9 +901,6 @@ uss820dci_setup_standard_chain(struct usb_xfer *xfer)
 	    xfer->flags_int.isochronous_xfr;
 	temp.did_stall = !xfer->flags_int.control_stall;
 
-	sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
-	ep_no = (xfer->endpointno & UE_ADDR);
-
 	/* check if we should prepend a setup message */
 
 	if (xfer->flags_int.control_xfr) {
@@ -2217,14 +2212,12 @@ static void
 uss820dci_xfer_setup(struct usb_setup_params *parm)
 {
 	const struct usb_hw_ep_profile *pf;
-	struct uss820dci_softc *sc;
 	struct usb_xfer *xfer;
 	void *last_obj;
 	uint32_t ntd;
 	uint32_t n;
 	uint8_t ep_no;
 
-	sc = USS820_DCI_BUS2SC(parm->udev->bus);
 	xfer = parm->curr_xfer;
 
 	/*