Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp77328rdb; Tue, 31 Oct 2023 00:46:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGludB/nm+Xm4g3RgbLRf8ttUTD7ByoWL6GKl7B4SDr6AyXJ12iA5+k8HtS0AzSTUYcPS7C X-Received: by 2002:a05:6a21:6d82:b0:15e:7323:5bf3 with SMTP id wl2-20020a056a216d8200b0015e73235bf3mr2526139pzb.26.1698738385124; Tue, 31 Oct 2023 00:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698738385; cv=none; d=google.com; s=arc-20160816; b=YN5VnSyvjK11MIiJXBmlt7iOM27r77dMlDFPoGzd82GZpEbZiA9z5onL36gyM/soMo kZ8ndXu1J89nM8KL7K/evX19Luic1NMP2gb03Ksoho8SZsd15jp/Aquhyv2iBpLfrvdb Zsbfy5wbLWZifqz5/jzl1KBd6Post29Yi6jWfUO0kwbuGoSAX3lSJaIH/bBr1ph1MpAu l8sY06Z35T/eaPIOfktQTRdkcM32j/zGrP7T0kiyv+14ylyY2AaUfoeoSNL7RYm9Dbn6 ++WtK31xPg5rCrFU+99ySk91ANXUtnEsHIOptnYeH6mA3h0x5Zl/gqqbnW0kDXfwx/hP bTuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=M5PUlrRPJLMwky2K8xVeUd19o1IMOoLB+iQa86s1rIs=; fh=BcKytwMh+8bIjm7lSGEsGyb5pXNr2ip3cG8N1rvfNf8=; b=NoiXwWkalr9a8hwzicJX2SKILWJQ0xv6eFM6Io+pB5J8CeyrmBN68daPhMJRtvN5Zm xKtimAdG7CmAzlPjeoBNtbilLJNm4Od8txWVEt+5M4zFzkJ6Qb1aUIdUY3kh96AgGEmS SkSlbv5xxiCwfmpiSTmRPdVRPAWK4C77jd3X6JVBCZcaIiXpBsvAKFt+MLXAgCeagotl YHKn8Si8bDgwliNjczcRTG4VgGoT14g5BpDUVGWWL+iewF1Rm5fxkkMF8GCH5ROM6drp PJYvsF+hCA568t9YMV6t9V5qLwDpySIfU2a/Rwol8jfZFP54DIbMzjv+R+yrYBdWMvGB 7GBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rfk3Xm2T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u31-20020a63455f000000b00565e0624182si663246pgk.404.2023.10.31.00.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rfk3Xm2T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 40B148052BDC; Tue, 31 Oct 2023 00:45:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343689AbjJaHpk (ORCPT + 52 others); Tue, 31 Oct 2023 03:45:40 -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) X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 00:45:41 -0700 (PDT) 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