From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F37E7C77B75 for ; Fri, 5 May 2023 13:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231937AbjEENII (ORCPT ); Fri, 5 May 2023 09:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232342AbjEENH7 (ORCPT ); Fri, 5 May 2023 09:07:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CDF41E980; Fri, 5 May 2023 06:07:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D4E963DF7; Fri, 5 May 2023 13:07:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B1E7C433D2; Fri, 5 May 2023 13:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683292074; bh=79GP8oXho+dfqQeJ9uzaGIMD8UOrca7fRPGnKMX7260=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ZicXFbz5jZNyVMlORYCz7kdzL7JnEhsJD8hTUYsluy8Ja7g6QjmtmrtEtzTBhfWXw 1MKOD8EZGapobKYgPTi/t5pOw74CzsRHSQoD7vsn9Xi+QRRSy/mHpyemajBuVjWOTM zfx+JyQOc2dl+rVq4LyVtCbmNippsL6CbGNM+0kiLfkWCI0BI4Hg9rfdo/bI8rvO1a 3EKzQJXd5ZM8GCxTJmo8KeBdfpWgy4yi/X+BKdKt5L6yMAyWMsmsG5QHTu2sAmJZru ziIQ/oBWQajqkALiJp/UpygjmsDaicyIus2cLG9TJLuiDOBevUsWyRB6KQzb9sfu8L KKn8JK8W9vnJw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH net-next] wifi: ath10k: Use list_count_nodes() From: Kalle Valo In-Reply-To: References: To: Christophe JAILLET Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168329207040.10223.8921513791102227473.kvalo@kernel.org> Date: Fri, 5 May 2023 13:07:52 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe JAILLET wrote: > ath10k_wmi_fw_stats_num_peers() and ath10k_wmi_fw_stats_num_vdevs() really > look the same as list_count_nodes(), so use the latter instead of hand > writing it. > > The first ones use list_for_each_entry() and the other list_for_each(), but > they both count the number of nodes in the list. > > Compile tested only. > > Signed-off-by: Christophe JAILLET > Reviewed-by: Simon Horman > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. fd7bc9d9d467 wifi: ath10k: Use list_count_nodes() -- https://patchwork.kernel.org/project/linux-wireless/patch/e6ec525c0c5057e97e33a63f8a4aa482e5c2da7f.1682541872.git.christophe.jaillet@wanadoo.fr/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches