]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Remove an unused variable.
authorVincent Bernat <bernat@luffy.cx>
Sat, 28 May 2011 14:52:05 +0000 (16:52 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sat, 28 May 2011 14:52:05 +0000 (16:52 +0200)
src/interfaces.c

index 6dc319a025749744268e4d2bdff4edeec75ec588..512c7c204d2a2c9b5551a1298686991d392d51ce 100644 (file)
@@ -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