From 1d85ab6b86f0f0fe67488acbb6a8b95b08c87906 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 7 Jan 2022 09:23:00 -0700 Subject: [PATCH] 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;