git: 1d85ab6b86f0 - main - wbwd: Move set but not used variable test under notyet

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 07 Jan 2022 16:27:53 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=1d85ab6b86f0f0fe67488acbb6a8b95b08c87906

commit 1d85ab6b86f0f0fe67488acbb6a8b95b08c87906
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-07 16:23:00 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-07 16:23:00 +0000

    wbwd: Move set but not used variable test under notyet
    
    Sponsored by:           Netflix
---
 sys/dev/wbwd/wbwd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/dev/wbwd/wbwd.c b/sys/dev/wbwd/wbwd.c
index 2c8cc63dbfdc..98833ccf88f0 100644
--- a/sys/dev/wbwd/wbwd.c
+++ b/sys/dev/wbwd/wbwd.c
@@ -295,10 +295,9 @@ static int
 sysctl_wb_force_test_nmi(SYSCTL_HANDLER_ARGS)
 {
 	struct wb_softc *sc;
-	int error, test, val;
+	int error, val;
 
 	sc = arg1;
-	test = arg2;
 
 #ifdef notyet
 	val = sc->test_nmi;
@@ -310,6 +309,8 @@ sysctl_wb_force_test_nmi(SYSCTL_HANDLER_ARGS)
                 return (error);
 
 #ifdef notyet
+	int test = arg2;
+
 	/* Manually clear the test for a value of 0 and do nothing else. */
 	if (test && val == 0) {
 		sc->test_nmi = 0;