Re: [PATCH] ath9k: remove repetitions of mask array size

2016-04-22 Thread Kalle Valo
Bob Copeland writes: > 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

Re: [PATCH] ath9k: remove repetitions of mask array size

2016-04-18 Thread Kalle Valo
Oleksij Rempel writes: > Kalle should be in CC. Actually no need, CCing me is useless as I use patchwork. Most important is that the patch is submitted to linux-wireless from where patchwork picks it up. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless"

Re: [PATCH] ath9k: remove repetitions of mask array size

2016-04-16 Thread Oleksij Rempel
Thank you! Kalle should be in CC. Am 16.04.2016 um 16:54 schrieb Bob Copeland: > 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()

[PATCH] ath9k: remove repetitions of mask array size

2016-04-16 Thread Bob Copeland
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 --- drivers/net/wireless