From nobody Fri Dec 10 12:09:47 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 6351118CBBF9; Fri, 10 Dec 2021 12:09:48 +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 4J9V8D0ncfz3nyf; Fri, 10 Dec 2021 12:09:48 +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 EFD431A39C; Fri, 10 Dec 2021 12:09:47 +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 1BAC9lJ4029660; Fri, 10 Dec 2021 12:09:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BAC9llE029659; Fri, 10 Dec 2021 12:09:47 GMT (envelope-from git) Date: Fri, 10 Dec 2021 12:09:47 GMT Message-Id: <202112101209.1BAC9llE029659@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: a0f49d676873 - main - hn: 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: a0f49d676873d0c7c0413aba67a837d4e549cab9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639138188; 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=sikKvJXDK7cm4pgRi7rKa5YNTp5xUmyoXWO0IOPvojs=; b=VxBtjF0blR3KFmh/Gj3DuQ5Hbljt14BdvbLdH76ERCVuP0Dke7NsudWe0p4hR1BV3DNsxQ c2hnWElNKRPXCjCTY4yjz36G/3KZrEChhHrENCtswkQCDUUE5VwX6WInYYlziFs9GVixhY 3FmYwH4n/Ks19+ODopS6EuNIc7KBP4vSV122nvpu9CrCor+r94D4ZBWKhYyxwYEYv9YmVp sSj3n2vr4HDrwaCCnkGAndvsbhx/iUoaO5mXYDP2YnGa4lUz16NF7EuMTi8ecdlg15XKKH g9ee2TTpoE8pPeM9lHkQMPyaaAoYXKFJnab1VkA6/eVPlCfVfzHWWuMQjbrkZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639138188; a=rsa-sha256; cv=none; b=wWiIaQXcJOG6CbrzHf26bjCml+38tSqjkQjZgBMbvPAQtnre4dex/yLDgw0VnYB2KeeE8P UUPaMBy9MlNqlZrxaqwPj3DCCMv3yZHgJfmp0uY1QKQ99+5kB+H50lT43hNkPjfLJJOOdd TIHpS44MccdrbzZ+YDGRA2xm8iSOmOKyPohGaDvl7EVn/sSzwIo3l4eLsbnIS3tDqPs5Y4 prq4aNt9NweugtTG3EW8LQoFUnxEsBY3EOSsnAkcxON5sQu8kzIoajdTy21L51smbDZOhm GGu4zAo9O1iIn0BLDOF+v3m0yJqeHNLGJsHaM3Cxivvb+9w/WxDlTYeAvPR+JQ== 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=a0f49d676873d0c7c0413aba67a837d4e549cab9 commit a0f49d676873d0c7c0413aba67a837d4e549cab9 Author: Mateusz Guzik AuthorDate: 2021-12-10 12:09:26 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-10 12:09:26 +0000 hn: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/hyperv/netvsc/if_hn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c index 025baaa60152..3d13bd696c94 100644 --- a/sys/dev/hyperv/netvsc/if_hn.c +++ b/sys/dev/hyperv/netvsc/if_hn.c @@ -2710,7 +2710,7 @@ hn_txdesc_put(struct hn_tx_ring *txr, struct hn_txdesc *txd) struct hn_txdesc *tmp_txd; while ((tmp_txd = STAILQ_FIRST(&txd->agg_list)) != NULL) { - int freed; + int freed __diagused; KASSERT(STAILQ_EMPTY(&tmp_txd->agg_list), ("resursive aggregation on aggregated txdesc")); @@ -3209,7 +3209,7 @@ hn_encap(struct ifnet *ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd, error = hn_txdesc_dmamap_load(txr, txd, &m_head, segs, &nsegs); if (__predict_false(error)) { - int freed; + int freed __diagused; /* * This mbuf is not linked w/ the txd yet, so free it now. @@ -3313,7 +3313,7 @@ again: hn_txdesc_put(txr, txd); if (__predict_false(error)) { - int freed; + int freed __diagused; /* * This should "really rarely" happen. @@ -5435,7 +5435,7 @@ hn_txdesc_gc(struct hn_tx_ring *txr, struct hn_txdesc *txd) /* Aggregated txds will be freed by their aggregating txd. */ if (txd->refs > 0 && (txd->flags & HN_TXD_FLAG_ONAGG) == 0) { - int freed; + int freed __diagused; freed = hn_txdesc_put(txr, txd); KASSERT(freed, ("can't free txdesc"));