The branch main has been updated by imp:

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

commit e73b02f66b7cf2f385457232de3ee908d695a170
Author:     Warner Losh <[email protected]>
AuthorDate: 2022-04-05 02:26:21 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2022-04-05 04:30:23 +0000

    atmegadci: eliminate unused variables sc, ep_no
    
    Sponsored by:           Netflix
---
 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;
 
        /*

Reply via email to