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 D8CC3C4167D for ; Tue, 31 Oct 2023 07:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343715AbjJaHpm (ORCPT ); Tue, 31 Oct 2023 03:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjJaHpi (ORCPT ); Tue, 31 Oct 2023 03:45:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4DBC1; Tue, 31 Oct 2023 00:45:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 865D6C433C7; Tue, 31 Oct 2023 07:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698738335; bh=NLwwmbwwqCvtjN1OuNUTkMJw4NZmW5mM/PG/LUZj3yQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Rfk3Xm2TAO9J0XEURs8VKXDgjneyf4OxmZpDmsMj+M9Y3x0+hfvqLXcAXqKL1ps06 U67INSuHVjYfeEjPSD4rmM/Xmz5vUIYDNigLLaTfXGCSOb5DBCOC9Dc9UeCT019G6W C+KZ2PoPmVx5Mzt81CxsGL8SYxQD3BeyLKILRnKAazybnTTU8lOKZc4iwe/rBmwUKV c259/yt60sBsgVNC/dYrf7a7UPLfQaXxA4zt8qt6dez8XG8FDBiDyvs00r6fbcERS+ bIkvnRd2ZodNuQFrK2YcJTbQh/21QwOnsa7/qAYK3XFzXvc894+Z1lC0xlzUs7p8+3 H/SnnQ9wr9+5g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: drop NULL pointer check in ath12k_update_per_peer_tx_stats() From: Kalle Valo In-Reply-To: <20231013074711.2202850-1-make_ruc2021@163.com> References: <20231013074711.2202850-1-make_ruc2021@163.com> To: Ma Ke Cc: quic_jjohnson@quicinc.com, ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Ma Ke User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169873833230.2137176.1125391865101568519.kvalo@kernel.org> Date: Tue, 31 Oct 2023 07:45:34 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ma Ke wrote: > Since 'user_stats' is a fixed-size array of 'struct htt_ppdu_user_stats' > in 'struct htt_ppdu_stats', any of its member can't be NULL and so > relevant check may be dropped. > > Signed-off-by: Ma Ke > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 56d9854bd7c6 wifi: ath12k: drop NULL pointer check in ath12k_update_per_peer_tx_stats() -- https://patchwork.kernel.org/project/linux-wireless/patch/20231013074711.2202850-1-make_ruc2021@163.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches