summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-01-30 00:28:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-01-30 00:28:27 +0000
commitd1b7be9cb435dd53cbbc0f43a6da4507d0087754 (patch)
tree83f66c2333dbc2b3457a0be48c97d23b8d4d9de6
parent5755b9bd4d7b0c8b5757904449fa086835c35e16 (diff)
dont store the unit when creating the interface, it's never used
-rw-r--r--sys/net/if_mpe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index b3980cab1f9..f165ba05115 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.74 2019/01/28 06:50:11 dlg Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.75 2019/01/30 00:28:26 dlg Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -56,7 +56,6 @@
struct mpe_softc {
struct ifnet sc_if; /* the interface */
struct ifaddr sc_ifa;
- int sc_unit;
struct sockaddr_mpls sc_smpls;
LIST_ENTRY(mpe_softc) sc_list;
};
@@ -98,7 +97,6 @@ mpe_clone_create(struct if_clone *ifc, int unit)
struct ifnet *ifp;
sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK|M_ZERO);
- sc->sc_unit = unit;
ifp = &sc->sc_if;
snprintf(ifp->if_xname, sizeof ifp->if_xname, "mpe%d", unit);
ifp->if_flags = IFF_POINTOPOINT;