From nobody Fri Jan 07 16:27:53 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 65F2A1934248; Fri, 7 Jan 2022 16:27:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JVpY56Ynzz3phj; Fri, 7 Jan 2022 16:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BE4486A02; Fri, 7 Jan 2022 16:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 207GRrGu062024; Fri, 7 Jan 2022 16:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 207GRr6u062023; Fri, 7 Jan 2022 16:27:53 GMT (envelope-from git) Date: Fri, 7 Jan 2022 16:27:53 GMT Message-Id: <202201071627.207GRr6u062023@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 1d85ab6b86f0 - main - wbwd: Move set but not used variable test under notyet List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d85ab6b86f0f0fe67488acbb6a8b95b08c87906 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641572874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DORdFZIT7F8ea31TSq2CAxYfMPA5ixJKIG6fIhv0whc=; b=xim/V33li7KHOxl1GEhgKXEmXi2Rc2U4rC//0srR0uJYxF08LEiZQ9GGDcLzeMJsT70/LD zUKSkK1/nGXNLTg3MOpSAXUKGPnZPP7iE3i9M1hZdaTDZlT4Uw5H4iTBOyA24s8XqMu9n8 TZ3vXGyvoKyPreAtunoQeifUeU1eB3kW9WAiW7gDLb9JCVG2iLBUeK+SK4xppzdTdJMgVT NxrsYoM2tYxYXuEt7PEMCqoU94fPZPcLeHM6XfoEhBSHhHYQK7C1u9uh6EInCz1/ggYE6T FVlleuTgrnxTL6GZkncCOF6gpZ9tW7VzVU63SS+lhyMk3+AH/BA2I7pqEinAZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641572874; a=rsa-sha256; cv=none; b=wXpIf+bm49pqcwLhfqbs+S7n7NrQ7qdWtwB5BwQw/MohEsNjNmno20MHhR/LTdkSA7a9eg PIjegr0qTYKrD5tLOhNVXJqV4AEzWtMK3QoVl0vMS6tfLhShjnZT9ncJcR6BAx2mKjrpRi RwsQfIS8NOzkKWH1rEk7UHiIP+mXrs5ufANrCQT3HIUFcpSTyZZKz+I8D77VUPL0dA9QLw 0yX5BAaEwTNmpY47ZWqdVL7/6qSl4EBO8Il0tCeM4FMBb0I6saWbF0t5BN3cPSd/apa4zE MtQZn9+HrHq5zAiBF0Jb6q4lF+OQ7Q4j8jIb5xHwM99QIRV378NP+nrpKeBeIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1d85ab6b86f0f0fe67488acbb6a8b95b08c87906 commit 1d85ab6b86f0f0fe67488acbb6a8b95b08c87906 Author: Warner Losh AuthorDate: 2022-01-07 16:23:00 +0000 Commit: Warner Losh 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;