aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bce
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-04-05 19:03:41 +0000
committerWarner Losh <imp@FreeBSD.org>2022-04-05 19:52:54 +0000
commitcbf7b9e6eeb696c2c158b788a0f364dcb1082422 (patch)
tree2a4252a6f6f347770f54b7d1a2ca9014f7219812 /sys/dev/bce
parent173fc6f4562ecb4228653328d578d427d99dd54a (diff)
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c5
1 files 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);