mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation.
This commit is contained in:
parent
a0b5928b29
commit
d5378bb633
1 changed files with 4 additions and 4 deletions
|
|
@ -1167,11 +1167,11 @@ nd6_dad_find(struct ifaddr *ifa)
|
|||
{
|
||||
struct dadq *dp;
|
||||
|
||||
for (dp = V_dadq.tqh_first; dp; dp = dp->dad_list.tqe_next) {
|
||||
TAILQ_FOREACH(dp, &V_dadq, dad_list)
|
||||
if (dp->dad_ifa == ifa)
|
||||
return dp;
|
||||
}
|
||||
return NULL;
|
||||
return (dp);
|
||||
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue