Searched hist:b5182e157d3a1d94d7ee6b4f4cb8267f9d7ad606 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar5008_phy.c | diff b5182e157d3a1d94d7ee6b4f4cb8267f9d7ad606 Sat Apr 16 09:54:37 CDT 2016 Bob Copeland <me@bobcopeland.com> ath9k: remove repetitions of mask array size
The constant "123", which is the number of elements in mask_m / mask_p, is repeated several times in this function.
Replace memsets with array initialization, and replace a loop conditional with ARRAY_SIZE() so that we don't repeat ourselves.
Signed-off-by: Bob Copeland <me@bobcopeland.com> Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
|