diff options
author | 2019-01-30 00:28:26 +0000 | |
---|---|---|
committer | 2019-01-30 00:28:26 +0000 | |
commit | ea5902a83cde28306f4aa75c27eed40538d88640 (patch) | |
tree | 71ae4043e6a215691970763c831b06b2a1728a11 /sys | |
parent | check the result of rtalloc with rtisvalid instead of a compare with NULL (diff) | |
download | wireguard-openbsd-ea5902a83cde28306f4aa75c27eed40538d88640.tar.xz wireguard-openbsd-ea5902a83cde28306f4aa75c27eed40538d88640.zip |
dont store the unit when creating the interface, it's never used
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_mpe.c | 4 |
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; |