Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2022 09:35:20 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f2edc9155721 - main - uart: plug a set-but-not-used var
Message-ID:  <202204190935.23J9ZKc6068240@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204190935.23J9ZKc6068240>