Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2022 23:46:02 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 92ca0e81b8a9 - main - pvscsi_adapter_reset: Mark val as unused.
Message-ID:  <202204062346.236Nk2Yt008714@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=92ca0e81b8a984e919a6162803ac467d06e0f28d

commit 92ca0e81b8a984e919a6162803ac467d06e0f28d
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:27 +0000

    pvscsi_adapter_reset: Mark val as unused.
    
    This variable is unsed in a debug trace conditional on a private
    debugging macro (so not eligible for __diagused).
---
 sys/dev/vmware/pvscsi/pvscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/vmware/pvscsi/pvscsi.c b/sys/dev/vmware/pvscsi/pvscsi.c
index f64b20863f60..6d80d1f0da68 100644
--- a/sys/dev/vmware/pvscsi/pvscsi.c
+++ b/sys/dev/vmware/pvscsi/pvscsi.c
@@ -745,7 +745,7 @@ pvscsi_setup_msg_ring(struct pvscsi_softc *sc)
 static void
 pvscsi_adapter_reset(struct pvscsi_softc *sc)
 {
-	uint32_t val;
+	uint32_t val __unused;
 
 	device_printf(sc->dev, "Adapter Reset\n");
 



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