aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-09-25 18:28:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-09-25 18:28:14 +0000
commit0def501d143a84714eed0a431d35c43d30546802 (patch)
treeaa3c803322520b48443e7765ff8095ae6679fddb
parent7ecdfc823798a8f7add245651b26d9d900bc9889 (diff)
downloadsrc-0def501d143a84714eed0a431d35c43d30546802.tar.gz
src-0def501d143a84714eed0a431d35c43d30546802.zip
mana: Cast an unused value to void to quiet a warning.
This appeases a -Wunused-value warning from GCC 9. Reviewed by: whu Differential Revision: https://reviews.freebsd.org/D31948
-rw-r--r--sys/dev/mana/mana_en.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mana/mana_en.c b/sys/dev/mana/mana_en.c
index ffeee336f694..5b680f146476 100644
--- a/sys/dev/mana/mana_en.c
+++ b/sys/dev/mana/mana_en.c
@@ -576,7 +576,7 @@ mana_xmit(struct mana_txq *txq)
next_to_use =
(next_to_use + 1) % MAX_SEND_BUFFERS_PER_QUEUE;
- atomic_inc_return(&txq->pending_sends);
+ (void)atomic_inc_return(&txq->pending_sends);
drbr_advance(ndev, txq->txq_br);