Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Avoid unused variable
details: https://anonhg.NetBSD.org/src/rev/c30daa7137e7
branches: trunk
changeset: 367262:c30daa7137e7
user: martin <martin%NetBSD.org@localhost>
date: Mon Jun 20 12:22:00 2022 +0000
description:
Avoid unused variable
diffstat:
sys/net/if_ethersubr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1135b3611810 -r c30daa7137e7 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Mon Jun 20 08:38:56 2022 +0000
+++ b/sys/net/if_ethersubr.c Mon Jun 20 12:22:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.314 2022/06/20 08:20:09 yamaguchi Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.315 2022/06/20 12:22:00 martin Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.314 2022/06/20 08:20:09 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.315 2022/06/20 12:22:00 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -644,7 +644,9 @@
void
ether_input(struct ifnet *ifp, struct mbuf *m)
{
+#if NVLAN > 0 || defined(MBUFTRACE)
struct ethercom *ec = (struct ethercom *) ifp;
+#endif
pktqueue_t *pktq = NULL;
struct ifqueue *inq = NULL;
uint16_t etype;
- Prev by Date:
[src/trunk]: src/sys/sys Welcome to 9.99.98
- Next by Date:
[src/trunk]: src/sys/arch/x86/x86 Add tdx_guest, brs, hfi, ibt, amx_bf16, amx...
- Previous by Thread:
[src/trunk]: src/sys/sys Welcome to 9.99.98
- Next by Thread:
[src/trunk]: src/sys/arch/x86/x86 Add tdx_guest, brs, hfi, ibt, amx_bf16, amx...
- Indexes:
Home |
Main Index |
Thread Index |
Old Index