OSDN Git Service

wifi: brcmutil: use helper function pktq_empty() instead of open code
authorJuhee Kang <claudiajkang@gmail.com>
Sat, 27 May 2023 11:49:54 +0000 (20:49 +0900)
committerKalle Valo <kvalo@kernel.org>
Thu, 1 Jun 2023 13:14:43 +0000 (16:14 +0300)
commit8012ec4a0e64b60d4d782950296e6fb217c6758f
tree430f4f29f77c3585f6c409c6de99974969e57ade
parent3e450386e99e6eeb9a40ac09fbc4704936334579
wifi: brcmutil: use helper function pktq_empty() instead of open code

pktq_empty was added in commit 5b435de0d786 ("net: wireless: add brcm80211
drivers") but it is currently not being utilized in some areas. This commit
replaces the open code with the pktq_empty() function.

Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230527114954.3281-2-claudiajkang@gmail.com
drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c