summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-09-12 09:57:21 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-09-12 09:57:21 +0000
commit8e35897e3037ea5c23417733a853d122f8fb324d (patch)
treef8a13bb0e64900f357d966265f0759fe86900423
parent2360b82aebae858fb6ebc7f2405b077600027873 (diff)
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;