git: f2edc9155721 - main - uart: plug a set-but-not-used var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Apr 2022 09:35:20 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f2edc9155721af9e98eaf86928cf270aedd87f80 commit f2edc9155721af9e98eaf86928cf270aedd87f80 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-04-19 09:34:55 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-04-19 09:34:55 +0000 uart: plug a set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/uart/uart_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 338c091d8c3d..9cd620308cd5 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -345,9 +345,11 @@ static __inline int uart_intr_rxready(void *arg) { struct uart_softc *sc = arg; +#if defined(KDB) int rxp; rxp = sc->sc_rxput; +#endif UART_RECEIVE(sc); #if defined(KDB) if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) {