git: 7bc6619013d9 - main - alc: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 11:49:01 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=7bc6619013d935382d4abe8cfe5ff145af9550bb
commit 7bc6619013d935382d4abe8cfe5ff145af9550bb
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-10 11:48:42 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-10 11:48:42 +0000
alc: plug set-but-not-unused vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/dev/alc/if_alc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
index bedbd20c1f04..7a11c3bea9db 100644
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -4674,7 +4674,7 @@ sysctl_hw_alc_int_mod(SYSCTL_HANDLER_ARGS)
static void
alc_debugnet_init(struct ifnet *ifp, int *nrxr, int *ncl, int *clsize)
{
- struct alc_softc *sc;
+ struct alc_softc *sc __diagused;
sc = if_getsoftc(ifp);
KASSERT(sc->alc_buf_size <= MCLBYTES, ("incorrect cluster size"));