git: 0fdc327e5d6b - stable/13 - uss820dci: eliminate unused variables sc, ep_no
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:30:00 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=0fdc327e5d6b6229174982b2436bf5f36bc11233
commit 0fdc327e5d6b6229174982b2436bf5f36bc11233
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:56 +0000
uss820dci: eliminate unused variables sc, ep_no
Sponsored by: Netflix
(cherry picked from commit 12312f75838e49635909f5ad4ba9e9688a3073b7)
---
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;
/*