[ath9k-devel] ath9k: remove repetitions of mask array size
Kalle Valo <[email protected]> Fri, 9 Sep 2016 14:12:41 +0200
| Newsgroups | org.ath9k.lists.ath9k-devel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
Bob Copeland <[email protected]> wrote: > 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 <[email protected]> > Reviewed-by: Oleksij Rempel <[email protected]> Thanks, 1 patch applied to ath-next branch of ath.git: b5182e157d3a ath9k: remove repetitions of mask array size -- Sent by pwcli https://patchwork.kernel.org/patch/8861641/