[ath9k-devel] [PATCH] ath9k: remove repetitions of mask array size
Kalle Valo <[email protected]>
| Newsgroups | org.ath9k.lists.ath9k-devel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
Bob Copeland <[email protected]> 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 Copeland <[email protected]> As this depends on a patch in wireless-drivers (at least I assume so), and I cannot apply a cleanup patch like this to that repository, I'm planning to apply this only after 4.7-rc1 is released. I hope that's ok. -- Kalle Valo