wcn36xx: Use existing pointers in wcn36xx_smd_config_bss_v1
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sat, 29 Aug 2020 03:38:45 +0000 (04:38 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Sep 2020 08:48:33 +0000 (11:48 +0300)
commitf32248a7a257480ec1c81dd9c9cabd48a5260303
treea586424a235e22c111d8b6eea68c18d1d985a03f
parent8f454b2ffb2577bdf2ba26e0bcd7204615a405a2
wcn36xx: Use existing pointers in wcn36xx_smd_config_bss_v1

Two pointers are already defined in this function "bss" and "sta" which
point to fields within msg_body->bss_params.

We can substantially reduce the amount of extraneous text in this function
by making use of those pointers. This change makes the code easier to read
and modify.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200829033846.2167619-10-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/smd.c