Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 23:23:53 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3e7bd3391f1b - stable/13 - iflib: Cast the result of iflib_netmap_txq_init() to void.
Message-ID:  <202205102323.24ANNr5o072088@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=3e7bd3391f1b6d35ee58a7e1b07f466730babb1a

commit 3e7bd3391f1b6d35ee58a7e1b07f466730babb1a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-02-19 20:52:05 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 20:59:07 +0000

    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
    
    (cherry picked from commit 2ccf971ace0bf23a9b27ec886a7f013c47661052)
---
 sys/net/iflib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index aba3baaa1e50..90cc2f851804 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2494,7 +2494,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);
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205102323.24ANNr5o072088>