From patchwork Tue Apr 25 11:57:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 87379 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3361562vqo; Tue, 25 Apr 2023 05:18:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ482m+zKvQhGB+b0bwl2lBlqmGnjHKPY1323K67qejjuyLIPHv2iuY6UNX5ehSmgscW4b76 X-Received: by 2002:a17:902:c3d1:b0:1a9:8ba4:d0d3 with SMTP id j17-20020a170902c3d100b001a98ba4d0d3mr2285483plj.8.1682425115841; Tue, 25 Apr 2023 05:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682425115; cv=none; d=google.com; s=arc-20160816; b=J6uHuFAY7j8TRHQUPgbr+Lx3i+XQ+9rCxG8J2pUEhLU7NeBmpBue0dopj5P6gJCY+p xs2XK8yo0WXKQ2sKFWpEaETWEaEGxvtx2NbRlMz3FxG1j5pF8fFPSivapm54ZhDcHA1h 17zGyBPO5IpNNwAMKB3tHke0+DPPcL92//DYrndxFRVBgIQdazB/elqfv4OuWyDJl5sM QC1YhNMr5rBt8uzkLhuum0lYMXrgdD9gF2jIWnwJtuYCXIT1+1E42y839C5nmulIpCuT tMZRKHUPMm/kmLTrni7MILdApPoD6nMXZ2ZnnZUKSfVuLY1Q0Sq/Xn23YITvVVDWlFng hqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t3xAngYVnplShoMkDBT5wxr82rgMk9+s4xEzp+xQcGk=; b=yiOfGC4vfMHMK7gklhRwNDnS5iAoxuTuF/AjLzzfMXrU/8N6OZDa6kCFm9hkTDT/q8 22M8Cws30GBVnzgZaWgHe122+pmcoteZ6LFv6YxEOZKXu/PZgVNeCdr3UQgdHqieVz+P cTn/+7HqLNxdwa8IlVsMtOcvbCUReKFMrLEigqshVx9/Co4wfAIp5K3SY+2tSrXizEmk XT7TdTbLyY7sQOzebffj4RfQ7gK5djDiPtCmjl6AJdoCdmMayXguvJo02Caq6+1/xnhu +1Ntd9GvVrpsrUvyQYBsmabZ6OGAvjFKwnahRk/FhMvDWUrXG2jjWVVb9kIFTzttzhzJ xTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=sLPw0Pw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a17090302c600b0019b090e497esi14240847plk.298.2023.04.25.05.18.20; Tue, 25 Apr 2023 05:18:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=sLPw0Pw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233581AbjDYL5s (ORCPT + 99 others); Tue, 25 Apr 2023 07:57:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233169AbjDYL5p (ORCPT ); Tue, 25 Apr 2023 07:57:45 -0400 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54DD659DA for ; Tue, 25 Apr 2023 04:57:25 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id rHIOpwV85Od5IrHIOpk006; Tue, 25 Apr 2023 13:57:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1682423843; bh=t3xAngYVnplShoMkDBT5wxr82rgMk9+s4xEzp+xQcGk=; h=From:To:Cc:Subject:Date; b=sLPw0Pw00uQk6bgsbUFMY+a4XjocYbk7duiHnLMdWW1BUkx9fWjVLP1NbmvOG8Gx5 Vi64m3fz2Gb18SOghspqNFubQlmjD+Usnvswdh5OFSbdGdaItUIlFhNkBdhxPYTDGp 0EQ0AG/mRUeuUjKQd2I4wbh2Z9EsPhzxoiQlBYuSJWuFt9gAdVkD0S3ClkPctw2/gz cyj7XhOoTsRh9UpiZZkMD5xlLlHIoUa35C+Op3twgEMNobeEEwsTicbCeAZEfU69nQ gPhVQLauG1wjWlUwecBQ/mCQ3coZ0bx/783BiRYLC4z20BU5IU+Bj6ONHlt7hbHK1m zSHIxeo2nNRCQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 25 Apr 2023 13:57:23 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] wifi: ath12k: Remove some dead code Date: Tue, 25 Apr 2023 13:57:19 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764150598395465143?= X-GMAIL-MSGID: =?utf-8?q?1764150598395465143?= ATH12K_HE_MCS_MAX = 11, so this test and the following one are the same. Remove the one with the hard coded 11 value. Signed-off-by: Christophe JAILLET --- drivers/net/wireless/ath/ath12k/dp_rx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c index e78478a5b978..79386562562f 100644 --- a/drivers/net/wireless/ath/ath12k/dp_rx.c +++ b/drivers/net/wireless/ath/ath12k/dp_rx.c @@ -1362,11 +1362,6 @@ ath12k_update_per_peer_tx_stats(struct ath12k *ar, * Firmware rate's control to be skipped for this? */ - if (flags == WMI_RATE_PREAMBLE_HE && mcs > 11) { - ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs); - return; - } - if (flags == WMI_RATE_PREAMBLE_HE && mcs > ATH12K_HE_MCS_MAX) { ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs); return;