Re: [PATCH net-next] wifi: mwifiex: Use list_count_nodes()

From: Brian Norris
Date: Thu Apr 27 2023 - 13:48:04 EST


On Wed, Apr 26, 2023 at 09:32:36PM +0200, Christophe JAILLET wrote:
> 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@xxxxxxxxxx>
> ---
> drivers/net/wireless/marvell/mwifiex/11n.h | 4 ++--
> drivers/net/wireless/marvell/mwifiex/wmm.h | 15 ---------------
> 2 files changed, 2 insertions(+), 17 deletions(-)

FWIW:

Reviewed-by: Brian Norris <briannorris@xxxxxxxxxxxx>