Message ID | 20221024153954.2168503-1-colin.i.king@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp580590wru; Mon, 24 Oct 2022 10:58:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xmnD+WIwoy7Ef+MC6/OCz/pBMFJNw14Sf84ch55apH3FOYKlqngasS80Pnw/mCf32Xysl X-Received: by 2002:a17:906:db03:b0:741:337e:3600 with SMTP id xj3-20020a170906db0300b00741337e3600mr28957582ejb.343.1666634299657; Mon, 24 Oct 2022 10:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666634299; cv=none; d=google.com; s=arc-20160816; b=NPx5FSUGGctYKl/iUxwdNHQ35Qh4SDUoR1xGxhsEzcqJ26hwMbjdZEWcsasjcmo9MZ 4pLUAit7piVqKIWAzMlja55eRL7FzQtbs33xXwUEW6jJF6jk8/Q1Qcj7vnSsc8qAi3/s L3rTdfD15IJ79TcQTqvjktF1fPbr15vAC2Z+xV4Oyf0x5fx9AFugxq0qbL0RgweyfWK/ QumjorPJSqBCRJwwKrlQ3yrT0k6Hx+aJRLVKfSv/UvJ06RnmmECmv/PQm06z7N03pQbq z+DKbXoj/axjCNBLf/fT6InDzJXdJLIHbqTqYuD690/v4pDZ9ldIOO5QKeL6SOmBPqpm zyBg== 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=7aiClwPR9sAvkuS66cGq13emR+XEGSOWezje9CRd5Ko=; b=dHDCIQ7WwVmftJpqXZgLKYIdqqYvsGi1bVtFAu0ENttUll7q8LYwHN9DjlSDf9H1m6 EL16Z7YPXHun/TH9INUE8zO7XNy0y2bhcMTEgIYavI4LwCUdR3yTHcmYo+O+FuVqMz/b M3vYtY5cjyQkDT590sHZXE1ccvgrt4MLYjkPHZwuDXr/S/UHtEjhJF84ZDpkchfrYA4R 6SpQ6WTlS4RMg3ACAEPX7F/B0fzBxoNUmAjCNpkdjPP5Fr5yP3SkhdjLCj1gakCGvc+X DzHNtGOzZa3D++frzsWVcTGk1FRXF5z/VZ7poszUOItl/xznlwJvruzwXcu2lqoBnwyq 2eaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AXE1YHRE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg37-20020a170907972500b0078d45e9d485si375037ejc.709.2022.10.24.10.57.54; Mon, 24 Oct 2022 10:58:19 -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=@gmail.com header.s=20210112 header.b=AXE1YHRE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233917AbiJXRna (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 13:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231794AbiJXRnG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 13:43:06 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A2DA50DF; Mon, 24 Oct 2022 09:17:59 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id o4so8812687wrq.6; Mon, 24 Oct 2022 09:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7aiClwPR9sAvkuS66cGq13emR+XEGSOWezje9CRd5Ko=; b=AXE1YHREz/ElPMozg6VRmr+8PZ5DdwECsVZN7yJ4+M7mMjSuztlivbhKAGSPlpO8xS mVyPlRhBrJ4UV7tEiyzPBNqT8sOhCp2I/SCgVpB2ffO6n7BhMASip8PXg85j18sD9ybG VzqiFw2yKpDaaQ6tRZ6yhHM/qi4r1iRhKLjZUZhwOuXOjn+7buIwW8gmw/ppPFAQvXw5 SwhpwSCZauJoF3nJMna0pVro0QhhpmPydJ7MXabd7CbJDBUsvsVEerLJ2yzz7DOCig5c m+K9nvR+SI3JHF3UE9QIseWkYn7rx74gahSTUQkqTV90/O5VJZ6M77gIkJz2V5Nr8Mf2 27RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7aiClwPR9sAvkuS66cGq13emR+XEGSOWezje9CRd5Ko=; b=OsatyBm0RJPxmdBfYKd2xJSrkiq02WOBO/t38SR0feOyDcaX+BXLnArTtHgaMEdbhW 23HreML8fEAKJ5Octm/ZsSW1NEmh4drGF8AZRa5CDs+kXVXUjoNMNgq74SfG31gmRIs3 yIbFgXCg2BP7GkqOPx3Cw8orYPUohXHWri9jQVKScLLaE+qA4hfGi0W8OtuNDo+r+SLK xqh81EeZLeTUq66EnMijhnhvdtDyNkTP36CFk480cp6Dn1zOnXuZN9iOcRFmvP16h6et VAyDCxzQtKxAxYGzID3e3oWFgTh0ko9LUtwrDXxndCvPv/eX/YuO3UBG23W2BzUnLHHQ Lhwg== X-Gm-Message-State: ACrzQf3ZgWsxKlnX3FMjQpY0Yo0Lcyn0cSiLCMRIpu55GP3sGrJ8VWzI 0o1vNTTTHyA0O8S+hd0RkJBIdHsV9L9nK4Ga X-Received: by 2002:adf:e3c1:0:b0:236:6d5d:ffa2 with SMTP id k1-20020adfe3c1000000b002366d5dffa2mr5420960wrm.557.1666625995849; Mon, 24 Oct 2022 08:39:55 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id h17-20020a5d4311000000b002366ded5864sm4241575wrq.116.2022.10.24.08.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 08:39:55 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= <toke@toke.dk>, Kalle Valo <kvalo@kernel.org>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ath9k: remove variable sent Date: Mon, 24 Oct 2022 16:39:54 +0100 Message-Id: <20221024153954.2168503-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747592727260529215?= X-GMAIL-MSGID: =?utf-8?q?1747592727260529215?= |
Series |
ath9k: remove variable sent
|
|
Commit Message
Colin Ian King
Oct. 24, 2022, 3:39 p.m. UTC
Variable sent is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/net/wireless/ath/ath9k/xmit.c | 2 --
1 file changed, 2 deletions(-)
Comments
Colin Ian King <colin.i.king@gmail.com> writes: > Variable sent is just being incremented and it's never used > anywhere else. The variable and the increment are redundant so > remove it. > > Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Colin Ian King <colin.i.king@gmail.com> wrote: > Variable sent is just being incremented and it's never used > anywhere else. The variable and the increment are redundant so > remove it. > > Signed-off-by: Colin Ian King <colin.i.king@gmail.com> > Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> > Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Patch applied to ath-next branch of ath.git, thanks. 4f6620cd6bbd wifi: ath9k: remove variable sent
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index ba271a10d4ab..39abb59d8771 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -1678,7 +1678,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw, struct ieee80211_tx_info *info; struct list_head bf_q; struct ath_buf *bf_tail = NULL, *bf = NULL; - int sent = 0; int i, ret; INIT_LIST_HEAD(&bf_q); @@ -1707,7 +1706,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw, bf_tail = bf; nframes--; - sent++; TX_STAT_INC(sc, txq->axq_qnum, a_queued_hw); if (an->sta && skb_queue_empty(&tid->retry_q))