git: ab59cd6a0b3b - main - musb: eliminate write only variable sc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:48 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ab59cd6a0b3bb00ef8101180eae54982090317a2 commit ab59cd6a0b3bb00ef8101180eae54982090317a2 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 02:27:08 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:30:26 +0000 musb: eliminate write only variable sc Sponsored by: Netflix --- 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; /*