diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-10 12:09:26 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-10 12:09:26 +0000 |
commit | a0f49d676873d0c7c0413aba67a837d4e549cab9 (patch) | |
tree | 80378755214964dec03ed5836319c8089238aea2 /sys/dev | |
parent | a036d73e8fc686262e6768e7785cede4881511b7 (diff) | |
download | src-a0f49d676873d0c7c0413aba67a837d4e549cab9.tar.gz src-a0f49d676873d0c7c0413aba67a837d4e549cab9.zip |
hn: plug set-but-not-unused vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hyperv/netvsc/if_hn.c | 8 |
1 files 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")); |