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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user