git: cbf7b9e6eeb6 - main - bce: Mark a few debugging variables as unused.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 19:55:55 UTC
The branch main has been updated by imp:

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

commit cbf7b9e6eeb696c2c158b788a0f364dcb1082422
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 19:03:41 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 19:52:54 +0000

    bce: Mark a few debugging variables as unused.
    
    Sponsored by:           Netflix
---
 sys/dev/bce/if_bce.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index a01c2ea1bbd3..da1f7a38fdd6 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -7119,10 +7119,11 @@ bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags)
 	struct ip *ip;
 	struct tcphdr *th;
 	u16 etype;
-	int hdr_len, ip_hlen = 0, tcp_hlen = 0, ip_len = 0;
+	int hdr_len __unused, ip_len __unused, ip_hlen = 0, tcp_hlen = 0;
 
 	DBRUN(sc->tso_frames_requested++);
 
+	ip_len = 0;
 	/* Controller may modify mbuf chains. */
 	if (M_WRITABLE(*m_head) == 0) {
 		m = m_dup(*m_head, M_NOWAIT);
@@ -7431,7 +7432,7 @@ bce_start_locked(struct ifnet *ifp)
 	struct bce_softc *sc = ifp->if_softc;
 	struct mbuf *m_head = NULL;
 	int count = 0;
-	u16 tx_prod, tx_chain_prod;
+	u16 tx_prod, tx_chain_prod __unused;
 
 	DBENTER(BCE_VERBOSE_SEND | BCE_VERBOSE_CTX);