uart: plug a set-but-not-used var

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2022-04-19 09:34:55 +00:00
parent 0fd5c29944
commit f2edc91557

View file

@ -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) {