wifi: mwifiex: Use list_count_nodes()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 26 Apr 2023 19:32:36 +0000 (21:32 +0200)
committerKalle Valo <kvalo@kernel.org>
Fri, 5 May 2023 12:02:18 +0000 (15:02 +0300)
commitc401bde6ead489938385867ce3a6d5faf9fb6aba
tree8e387b0f8911ac7925a14384a29a448e9071af07
parent9d4f491b860ea6d04471c3342093b86a46eee63e
wifi: mwifiex: Use list_count_nodes()

mwifiex_wmm_list_len() is the same as list_count_nodes(), so use the latter
instead of hand writing it.

Turn 'ba_stream_num' and 'ba_stream_max' in size_t to keep the same type
as what is returned by list_count_nodes().

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/e77ed7f719787cb8836a93b6a6972f4147e40bc6.1682537509.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/marvell/mwifiex/11n.h
drivers/net/wireless/marvell/mwifiex/wmm.h