fix compile error
authorJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 21:52:06 +0000 (23:52 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 21:52:06 +0000 (23:52 +0200)
netifd-2018-07-30-75ee7905/interface-ip.c:724:11: error: unused variable 'macaddr' [-Werror=unused-variable]

Signed-off-by: John Crispin <john@phrozen.org>
interface-ip.c

index c855cdb5066c190dddbcf9f3f466b750c953b10f..b577e66db5b720a00db09dca55903c9fec2f38d8 100644 (file)
@@ -721,7 +721,6 @@ eui64_ifaceid(struct interface *iface, struct in6_addr *addr)
                return false;
 
        /* get mac address */
-       uint8_t *macaddr = iface->l3_dev.dev->settings.macaddr;
        uint8_t *ifaceid = addr->s6_addr + 8;
        memcpy(ifaceid, st.macaddr, 3);
        memcpy(ifaceid + 5, st.macaddr + 3, 3);