From nobody Thu Dec 09 20:40:12 2021 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 3347118C899A; Thu, 9 Dec 2021 20:40:13 +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 4J95Wc6lcfz3DlM; Thu, 9 Dec 2021 20:40:12 +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 C73DB563A; Thu, 9 Dec 2021 20:40:12 +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 1B9KeCQT084869; Thu, 9 Dec 2021 20:40:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9KeCo5084863; Thu, 9 Dec 2021 20:40:12 GMT (envelope-from git) Date: Thu, 9 Dec 2021 20:40:12 GMT Message-Id: <202112092040.1B9KeCo5084863@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: e735fa321224 - main - net/if.c: plug set-but-not-unused vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e735fa321224bb81fbd51907638293c22be40b8e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639082413; 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=wXa+52Jf0xB0vygh/IH16dvxsDsIiXfXtoQfZTdVjxc=; b=qxijYeeGXt0T1n0ZIv9Z2P9BvTlW+7tZmJlgAnlAHNVdGM0ih+ScIs/y+BM3Ns08oNbmm/ Ky7SnGSTlv3az+2Rq2zcz8fso7HB/9UOq0nk2IR0Rh97IIUkTEkCd7GP4yWTQoLqbussgX nMYujRII1sKkGQjeTKAy3b0mQMvx2nS7aCiMNC6t2vsCGwmkImdaorYoOssnspKFi/xByg V36aYDd1yn5FNrZLRVD7HtXPKTnP4b1cQ4ekieElsGT6ebRgZUNfgX49c1t0kRLHXaaS88 SjdxxRPJtShWP6MxgTz95JB0OXquNxjM6YTf2Up0AINP/0ZTBftJ28la4eJTIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639082413; a=rsa-sha256; cv=none; b=YnVEb8gzDKJtuKUa7xrS0WDqy6wWxAhZpzBsoc2V2zwNm/v4QNvvZ9c6ipm0/wEdbgwb9+ mRW9KXZrAnKyBZJl3Qsv1FPifkD+FwoNXvO7+aZGLpBEBA2OwlRNGjSVwW6RYlo4xTqTeM rRrf0i/iruvNGpe1D9VdbEItHTIC9tnMkDhs5B5abdBWgEFpgo24GcezVEIeJkBN2sXNmI crbuXtpuGV3C/tW97KikfZmL3n0YeNMVrDeyEMhNfP7pdVonOvkcUHsMUhPUdeNGr0Lw1R yLCTOcd4BLD/FaL+Hd5+eR5fp6Wj1fLZIT9L8xapoySbNrZDWynhgMmHA7UX/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=e735fa321224bb81fbd51907638293c22be40b8e commit e735fa321224bb81fbd51907638293c22be40b8e Author: Mateusz Guzik AuthorDate: 2021-12-09 20:39:40 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 20:39:40 +0000 net/if.c: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/net/if.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 6543cee5ef5a..84436c0074c8 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -517,7 +517,8 @@ vnet_if_return(const void *unused __unused) { struct ifnet *ifp, *nifp; struct ifnet **pending; - int found, i; + int found __diagused; + int i; i = 0; @@ -1337,7 +1338,7 @@ if_vmove_loan(struct thread *td, struct ifnet *ifp, char *ifname, int jid) struct prison *pr; struct ifnet *difp; int error; - bool found; + bool found __diagused; bool shutdown; /* Try to find the prison within our visibility. */ @@ -1394,7 +1395,7 @@ if_vmove_reclaim(struct thread *td, char *ifname, int jid) struct prison *pr; struct vnet *vnet_dst; struct ifnet *ifp; - int error, found; + int error, found __diagused; bool shutdown; /* Try to find the prison within our visibility. */