From f2edc9155721af9e98eaf86928cf270aedd87f80 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 19 Apr 2022 09:34:55 +0000 Subject: [PATCH] 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 338c091d8c3..9cd620308cd 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) {