From 5f415bc72ea168a8fde400afcd3e4992424f6bae Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 28 May 2011 16:52:05 +0200 Subject: [PATCH] Remove an unused variable. --- src/interfaces.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/interfaces.c b/src/interfaces.c index 6dc319a0..512c7c20 100644 --- a/src/interfaces.c +++ b/src/interfaces.c @@ -686,7 +686,6 @@ lldpd_ifh_eth(struct lldpd *cfg, struct ifaddrs *ifap) { struct ifaddrs *ifa; struct lldpd_hardware *hardware; - struct lldpd_port *port; for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) { if (!iface_minimal_checks(cfg, ifa)) @@ -715,7 +714,6 @@ lldpd_ifh_eth(struct lldpd *cfg, struct ifaddrs *ifap) lldpd_port_cleanup(cfg, &hardware->h_lport, 0); } - port = &hardware->h_lport; hardware->h_flags = ifa->ifa_flags; /* Should be non-zero */ ifa->ifa_flags = 0; /* Future handlers don't have to -- 2.39.5