diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c index 83df27d4bef6..6c370bd0f7ae 100644 --- a/sys/amd64/amd64/autoconf.c +++ b/sys/amd64/amd64/autoconf.c @@ -352,7 +352,6 @@ pxe_setup_nfsdiskless() return; } ifa = NULL; - ifp = TAILQ_FIRST(&ifnet); TAILQ_FOREACH(ifp, &ifnet, if_link) { TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { if ((ifa->ifa_addr->sa_family == AF_LINK) && diff --git a/sys/i386/i386/autoconf.c b/sys/i386/i386/autoconf.c index 83df27d4bef6..6c370bd0f7ae 100644 --- a/sys/i386/i386/autoconf.c +++ b/sys/i386/i386/autoconf.c @@ -352,7 +352,6 @@ pxe_setup_nfsdiskless() return; } ifa = NULL; - ifp = TAILQ_FIRST(&ifnet); TAILQ_FOREACH(ifp, &ifnet, if_link) { TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { if ((ifa->ifa_addr->sa_family == AF_LINK) &&