diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-07-08 17:53:33 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-10-02 04:25:55 +0000 |
commit | bbc76273173e9bdbb69c9c2212bb13643f3c6756 (patch) | |
tree | 0b3aa0255ce75000e4664f684cde1edf600ce36b | |
parent | 3f07688cf6ff20b98732a578e7822a978143b33b (diff) | |
download | src-bbc76273173e9bdbb69c9c2212bb13643f3c6756.tar.gz src-bbc76273173e9bdbb69c9c2212bb13643f3c6756.zip |
musb: eliminate write only variable sc
Sponsored by: Netflix
(cherry picked from commit ab59cd6a0b3bb00ef8101180eae54982090317a2)
-rw-r--r-- | sys/dev/usb/controller/musb_otg.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/usb/controller/musb_otg.c b/sys/dev/usb/controller/musb_otg.c index aa24544f8893..292f45f005ce 100644 --- a/sys/dev/usb/controller/musb_otg.c +++ b/sys/dev/usb/controller/musb_otg.c @@ -2126,12 +2126,9 @@ musbotg_host_data_tx(struct musbotg_td *td) static uint8_t musbotg_xfer_do_fifo(struct usb_xfer *xfer) { - struct musbotg_softc *sc; struct musbotg_td *td; DPRINTFN(8, "\n"); - sc = MUSBOTG_BUS2SC(xfer->xroot->bus); - td = xfer->td_transfer_cache; while (1) { if ((td->func) (td)) { @@ -4012,14 +4009,12 @@ done: static void musbotg_xfer_setup(struct usb_setup_params *parm) { - struct musbotg_softc *sc; struct usb_xfer *xfer; void *last_obj; uint32_t ntd; uint32_t n; uint8_t ep_no; - sc = MUSBOTG_BUS2SC(parm->udev->bus); xfer = parm->curr_xfer; /* |