mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use the nifty TAILQ_FOREACH.
This commit is contained in:
parent
ad67537233
commit
5aa288f461
1 changed files with 1 additions and 2 deletions
|
|
@ -393,8 +393,7 @@ tuninit(struct ifnet *ifp)
|
|||
ifp->if_drv_flags |= IFF_DRV_RUNNING;
|
||||
getmicrotime(&ifp->if_lastchange);
|
||||
|
||||
for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa;
|
||||
ifa = TAILQ_NEXT(ifa, ifa_link)) {
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
|
||||
if (ifa->ifa_addr == NULL)
|
||||
error = EFAULT;
|
||||
/* XXX: Should maybe return straight off? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue