git: 2fb87f5147fc - main - uart_mu: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 00:28:12 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2fb87f5147fccaff7ea7abaa564fe400d6e4024e commit 2fb87f5147fccaff7ea7abaa564fe400d6e4024e Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 00:25:15 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 00:25:15 +0000 uart_mu: Remove unused variables. --- sys/dev/uart/uart_dev_mu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/uart/uart_dev_mu.c b/sys/dev/uart/uart_dev_mu.c index e73d2d208069..b89aae31afca 100644 --- a/sys/dev/uart/uart_dev_mu.c +++ b/sys/dev/uart/uart_dev_mu.c @@ -346,10 +346,8 @@ uart_mu_bus_getsig(struct uart_softc *sc) static int uart_mu_bus_ioctl(struct uart_softc *sc, int request, intptr_t data) { - struct uart_bas *bas; int error; - bas = &sc->sc_bas; error = 0; uart_lock(sc->sc_hwmtx); switch (request) { @@ -431,14 +429,12 @@ uart_mu_bus_probe(struct uart_softc *sc) static int uart_mu_bus_receive(struct uart_softc *sc) { - struct uart_mu_softc *psc; struct uart_bas *bas; uint32_t lsr, xc; int rx; bas = &sc->sc_bas; uart_lock(sc->sc_hwmtx); - psc = (struct uart_mu_softc *)sc; lsr = __uart_getreg(bas, AUX_MU_LSR_REG); while (lsr & LSR_RXREADY) {