From 2ccf971ace0bf23a9b27ec886a7f013c47661052 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 19 Feb 2021 12:52:05 -0800 Subject: 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 --- sys/net/iflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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); } /* -- cgit v1.2.3