wifi: ath10k: simplify ath10k_peer_create()
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 2 Oct 2023 17:03:57 +0000 (20:03 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 3 Oct 2023 14:21:20 +0000 (17:21 +0300)
commit322a487c53f84e4586f5bbed33bd373e25abfe42
treebee51689a0412927759581f9945f34c05f873044
parentd876188ab8074087b23b3d83a56c889ebb1904ae
wifi: ath10k: simplify ath10k_peer_create()

Use convenient 'list_count_nodes()' in 'ath10k_peer_create()',
thus making the latter a bit smaller and simpler.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230704180617.84948-1-dmantipov@yandex.ru
drivers/net/wireless/ath/ath10k/mac.c