git: bbc76273173e - stable/13 - musb: eliminate write only variable sc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:58 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bbc76273173e9bdbb69c9c2212bb13643f3c6756 commit bbc76273173e9bdbb69c9c2212bb13643f3c6756 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 musb: eliminate write only variable sc Sponsored by: Netflix (cherry picked from commit ab59cd6a0b3bb00ef8101180eae54982090317a2) --- sys/dev/usb/controller/musb_otg.c | 5 ----- 1 file changed, 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; /*