HomeFreeBSD

net80211 amdpu: Simplify a few loops that drain an mbufq

Description

net80211 amdpu: Simplify a few loops that drain an mbufq

These loops already handled a NULL return from mbufq_dequeue when the
queue was empty, so remove a redundant check of mbufq_len before
dequeueing.

Reviewed by: bz
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43336

(cherry picked from commit 6977311633c73f594ff3dae150d6d1fe06105a8f)

Details

Provenance
jhbAuthored on Jan 9 2024, 6:59 PM
Reviewer
bz
Differential Revision
D43336: net80211 amdpu: Simplify a few loops that drain an mbufq
Parents
rGb1f42294456d: sys: Style fix for M_EXT | M_EXTPG
Branches
Unknown
Tags
Unknown