summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-09-12 09:57:20 +0000
committerdlg <dlg@openbsd.org>2015-09-12 09:57:20 +0000
commit0000d952c6961abe4b07a43aa7e392e4f7828736 (patch)
tree25c05481a7abc39048f8fb02d34534b4ebda08f0
parentifmedia64 fixes. (diff)
downloadwireguard-openbsd-0000d952c6961abe4b07a43aa7e392e4f7828736.tar.xz
wireguard-openbsd-0000d952c6961abe4b07a43aa7e392e4f7828736.zip
vhif_ifp in struct carp_ifs is set but never used. it can be trimmed.
ok claudio@ mpi@
-rw-r--r--sys/netinet/ip_carp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 6d0243a3155..fff2b7560c8 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.269 2015/09/12 09:36:31 dlg Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.270 2015/09/12 09:57:20 dlg Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -169,8 +169,6 @@ int carp_send_all_recur = 0;
struct carp_if {
TAILQ_HEAD(, carp_softc) vhif_vrs;
-
- struct ifnet *vhif_ifp;
};
#define CARP_LOG(l, sc, s) \
@@ -1695,7 +1693,6 @@ carp_set_ifp(struct carp_softc *sc, struct ifnet *ifp)
return (error);
}
- ncif->vhif_ifp = ifp;
TAILQ_INIT(&ncif->vhif_vrs);
} else {
cif = (struct carp_if *)ifp->if_carp;