sys: Use mbufq_empty instead of comparing mbufq_len against 0

Reviewed by:	bz, emaste
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D43338
This commit is contained in:
John Baldwin
2024-01-09 11:00:46 -08:00
parent 76f405ed63
commit 8cb9b68f58
8 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -2993,7 +2993,7 @@ mld_v2_dispatch_general_query(struct mld_ifsoftc *mli)
* many packets, we should finish sending them before starting of
* queuing the new reply.
*/
if (mbufq_len(&mli->mli_gq) != 0)
if (!mbufq_empty(&mli->mli_gq))
goto send;
ifp = mli->mli_ifp;