From: Vincent Bernat Date: Sat, 28 May 2011 14:52:05 +0000 (+0200) Subject: Remove an unused variable. X-Git-Tag: 0.5.4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f415bc72ea168a8fde400afcd3e4992424f6bae;p=thirdparty%2Flldpd.git Remove an unused variable. --- 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