git: 3f07688cf6ff - stable/13 - atmegadci: eliminate unused variables sc, ep_no

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:57 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f07688cf6ff20b98732a578e7822a978143b33b

commit 3f07688cf6ff20b98732a578e7822a978143b33b
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

    atmegadci: eliminate unused variables sc, ep_no
    
    Sponsored by:           Netflix
    
    (cherry picked from commit e73b02f66b7cf2f385457232de3ee908d695a170)
---
 sys/dev/usb/controller/atmegadci.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys/dev/usb/controller/atmegadci.c b/sys/dev/usb/controller/atmegadci.c
index 84f331f557a3..fdb212f3134e 100644
--- a/sys/dev/usb/controller/atmegadci.c
+++ b/sys/dev/usb/controller/atmegadci.c
@@ -775,10 +775,8 @@ static void
 atmegadci_setup_standard_chain(struct usb_xfer *xfer)
 {
 	struct atmegadci_std_temp temp;
-	struct atmegadci_softc *sc;
 	struct atmegadci_td *td;
 	uint32_t x;
-	uint8_t ep_no;
 	uint8_t need_sync;
 
 	DPRINTFN(9, "addr=%d endpt=%d sumlen=%d speed=%d\n",
@@ -801,9 +799,6 @@ atmegadci_setup_standard_chain(struct usb_xfer *xfer)
 	    xfer->flags_int.isochronous_xfr;
 	temp.did_stall = !xfer->flags_int.control_stall;
 
-	sc = ATMEGA_BUS2SC(xfer->xroot->bus);
-	ep_no = (xfer->endpointno & UE_ADDR);
-
 	/* check if we should prepend a setup message */
 
 	if (xfer->flags_int.control_xfr) {
@@ -1956,14 +1951,12 @@ static void
 atmegadci_xfer_setup(struct usb_setup_params *parm)
 {
 	const struct usb_hw_ep_profile *pf;
-	struct atmegadci_softc *sc;
 	struct usb_xfer *xfer;
 	void *last_obj;
 	uint32_t ntd;
 	uint32_t n;
 	uint8_t ep_no;
 
-	sc = ATMEGA_BUS2SC(parm->udev->bus);
 	xfer = parm->curr_xfer;
 
 	/*