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

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
rG6631e2f9b49e: kldxref: Workaround incorrect PT_DYNAMIC in existing powerpc kernels
Branches
Unknown
Tags
Unknown