Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2441985rda; Wed, 25 Oct 2023 02:56:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHOD9LGGLAl2yzyq9ge5wiCVidMAL5Ly76AVKrZYvc74dliX9/IX/eBUPtwS3LI67Dx6IW X-Received: by 2002:a0d:d613:0:b0:59e:7fc1:dba0 with SMTP id y19-20020a0dd613000000b0059e7fc1dba0mr16219080ywd.44.1698227794866; Wed, 25 Oct 2023 02:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698227794; cv=none; d=google.com; s=arc-20160816; b=o8lvqjzWm2j5k7ETv27259CTPVJh4Lwfqb1JoiN2ozJrsvBmgOQXhB31em4ISs/Yj3 tvumqJ8+0epaJ8OTy1EYZpXpdmXzKvaRFIfA+afus8w74eJb2YsZhgGv3O+m2g5Wnlhz wEhiW9ZYh65ZpO1CFlFergOtmJI8kycx1zH46ASkBjDJURfG/bXVGDvJpnuvI8OF1ncA 4JPRDjCMh+v8+TOWPaRywMHAbzi5xl5nOPJRktjHfRdVjs4wgwj5qMVevrr/ac8VEaRe 9TV5Hs6k+rsa/2L+ygwUEQT4XA5rtXhnuVVUobVYtQMRfaEmzNqDHdn5LNDQUA0/WF5+ ZB2w== 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=1aPK9u9HdyIvHz/DYpGBt0NtF9d6e0CtAgwrY6bEf78=; fh=BcKytwMh+8bIjm7lSGEsGyb5pXNr2ip3cG8N1rvfNf8=; b=Pff1O/Lb3tj8QCNvLPs3jBbS/Xltddoq5h5dZq6Yolrqz4fZgF5JcJs5seU6SOIlao 6ssEZMIaF2P+wzDIGHKUWRJIj/yAeYstSR7mUvrNgfFd9UYztbByLdBgcLiZUpPBH43j 0nA4V1cxizbfcDC5vbay8QyWLB9qiihpK2jkUpGVo6vPjP8t72N6rPzvEb9CK4YBRtqp +MS1hbr5jHaDYS4oWCb/XkW7n0f5ktGwKGvekwnMvbUBKoTCV6RuXBRvRoLaw3U1xMq0 xrwkjl+l7BzlpF0dtaL3opPMM8suUNbTvfvfueehiZ70+sGnUvSLJu1UlRee6B1M1TPv T//w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fv1NqmZj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d10-20020a81d34a000000b00589f247a0c2si10679692ywl.222.2023.10.25.02.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fv1NqmZj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id DD40480290A2; Wed, 25 Oct 2023 02:56:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233522AbjJYJ4a (ORCPT + 52 others); Wed, 25 Oct 2023 05:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbjJYJ42 (ORCPT ); Wed, 25 Oct 2023 05:56:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670CB9C; Wed, 25 Oct 2023 02:56:27 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE110C433C8; Wed, 25 Oct 2023 09:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698227787; bh=Io+0mhN/DI2Tynf/rpk7RkkqXG4/7BUXxxxPDKfR8JY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Fv1NqmZjZ2c2hQMnMV4qc1/CVIJPxsGmw25WIcA1X1sjR5bwuHD+SW5jo8viVhlO0 HQJGErC+HGvgTlH2B0iSf7PtUF9AoHlyOlRuSNxwliru7yBBV4/aP6I4sjylMB4NW5 Ye4gIFb9E5ABIjfSOYLKPoKTndludG5VwMUJiJA/mctRrZC7KzmB3Gnl+TLl1B9ei/ rDk8hT/ryVh+pRcW/BMWq9j/ExIkxxRUes5v5jH1JY3W48wLxwnEHPQfN8I1Vesbmq p6XxEzeVK+Lz++KAI8d14LsZnApqusVnUB4FM/mbYhw2b1AChq5teI34bj2LQiZbST m/08VTK5ILBvA== 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: <169822778398.891844.2822098383458779586.kvalo@kernel.org> Date: Wed, 25 Oct 2023 09:56:25 +0000 (UTC) X-Spam-Status: No, score=-1.2 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:56:31 -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 Jeff, what do you think? -- https://patchwork.kernel.org/project/linux-wireless/patch/20231013074711.2202850-1-make_ruc2021@163.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches