From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Fri, 9 Sep 2016 14:12:41 +0200 Subject: [ath9k-devel] ath9k: remove repetitions of mask array size In-Reply-To: <1460818477-22785-1-git-send-email-me@bobcopeland.com> Message-ID: <3c2c0881c96d49f490fa04c869c5bb4d@euamsexm01a.eu.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Bob Copeland 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 > Reviewed-by: Oleksij Rempel 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/