aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-02-19 20:52:05 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-02-19 20:52:53 +0000
commit2ccf971ace0bf23a9b27ec886a7f013c47661052 (patch)
tree88260335b1c09ea8afa58fcb79af1f31510ebcc7
parent05d882b780f5be2da6f3d3bfef9160aacc4888d6 (diff)
downloadsrc-2ccf971ace0bf23a9b27ec886a7f013c47661052.tar.gz
src-2ccf971ace0bf23a9b27ec886a7f013c47661052.zip
iflib: Cast the result of iflib_netmap_txq_init() to void.
This fixes a warning from GCC for kernels without netmap since the return value is never used. Reviewed by: vmaffione, erj Differential Revision: https://reviews.freebsd.org/D28598
-rw-r--r--sys/net/iflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index a33ddbe5b8ae..6312499feac8 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2454,7 +2454,7 @@ iflib_init_locked(if_ctx_t ctx)
callout_stop(&txq->ift_netmap_timer);
#endif /* DEV_NETMAP */
CALLOUT_UNLOCK(txq);
- iflib_netmap_txq_init(ctx, txq);
+ (void)iflib_netmap_txq_init(ctx, txq);
}
/*