mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Use TAILQ_EMPTY instead of checking if TAILQ_FIRST is NULL.
This commit is contained in:
parent
bcec98969f
commit
012759b743
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160980
@ -104,7 +104,7 @@ svr4_sock_ioctl(fp, td, retval, fd, cmd, data)
|
||||
*/
|
||||
IFNET_RLOCK();
|
||||
TAILQ_FOREACH(ifp, &ifnet, if_link)
|
||||
if (TAILQ_FIRST(&ifp->if_addrhead) == NULL)
|
||||
if (TAILQ_EMPTY(&ifp->if_addrhead))
|
||||
ifnum++;
|
||||
else
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrhead,
|
||||
|
Loading…
Reference in New Issue
Block a user