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 2B6B2C7EE22 for ; Fri, 5 May 2023 13:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232353AbjEENIp (ORCPT ); Fri, 5 May 2023 09:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232323AbjEENIm (ORCPT ); Fri, 5 May 2023 09:08:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8351F4B2; Fri, 5 May 2023 06:08:21 -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 1016F6130A; Fri, 5 May 2023 13:08:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26EE0C433EF; Fri, 5 May 2023 13:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683292100; bh=9c7Vz5IK8FlKc1ixls6ozwZqUCZkz+LKtCLr4XFgz4o=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Ly2mEHo/Fnl4oZ00haoj/eCR4VZ38Tmh3QmTlSbrG0I6euToDPFlDJ84kuWX2lbwh /m33W5MRxiCmvuLkSkMnAIPGHaRRloKjZaQiVCNzvTPYRToEN9cMqDFLXIM2bK28xN LkgPoknV/fMtwzcCnjxghUX/K+EHPwop6mAqWJxGwWH0yCQbGzpUoaeQlZaH+mvFyO YwOzFpX+H7EOP20LZ0pPQBVIswo/jAdhql7UIigIVJFJw9X99fVajwjtufxrGKOXJB DYcmtkTzw7CyVU7Ce+ZN947VuWQimZSfyJYAHai/Idx9QXFY5qBVq/nBnWMcLbOwaQ 6OJdjp3nA3V6Q== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH net-next] wifi: ath11k: Use list_count_nodes() From: Kalle Valo In-Reply-To: <941484caae24b89d20524b1a5661dd1fd7025492.1682542084.git.christophe.jaillet@wanadoo.fr> References: <941484caae24b89d20524b1a5661dd1fd7025492.1682542084.git.christophe.jaillet@wanadoo.fr> 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 , ath11k@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: <168329209643.10223.10625697791625657598.kvalo@kernel.org> Date: Fri, 5 May 2023 13:08:17 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe JAILLET wrote: > ath11k_wmi_fw_stats_num_vdevs() and ath11k_wmi_fw_stats_num_bcn() 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. > > While at it, also remove to prototypes of non-existent functions. > Based on the names and prototypes, it is likely that they should be > equivalent to list_count_nodes(). > > 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. 91dce4091433 wifi: ath11k: Use list_count_nodes() -- https://patchwork.kernel.org/project/linux-wireless/patch/941484caae24b89d20524b1a5661dd1fd7025492.1682542084.git.christophe.jaillet@wanadoo.fr/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches