Message ID | 20221024143501.2163720-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 l7csp640895wru; Mon, 24 Oct 2022 13:33:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5r6WDvvZRtm/DqJ7emKk+XZiivhhijDWdHPuI11CaMNBrt6HLENIf+77kmyEIEj6hA0eCl X-Received: by 2002:a17:90a:c782:b0:202:c73e:5488 with SMTP id gn2-20020a17090ac78200b00202c73e5488mr74854524pjb.202.1666643629551; Mon, 24 Oct 2022 13:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666643629; cv=none; d=google.com; s=arc-20160816; b=er7j+tAExt/LTdv6jVvH0+jfaIbihYKWD7mizz+4N6XutyWF6d5OX7WixoW+XrGGHk f8/p+YaxvQX7Krf5NVFebI5wxko6kc2vJDuVrf/jZy4ZNypUZZo9tsYExm/gnY9UMcnp NMGLhTZED888pgSV7wytBiymXaFR0Ed02vsZR6kT0RVjkUXY5iRcZa3xx0TQmMibAEh2 x98abK5UyUQxgQWKhNhHhwzZaLgxrAvRl+pDy9YB61iUhhNEWHtxkHNms5GmHX/vrZX1 dZ+zALDHTZSpd2pz6rHxmF7ckMgjk1qZSX6KqWp/kOdMuS/TaRhRRf8oaF9/15dTRqyQ P6oA== 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=dJnt2GP1pm08BDpQHAhmkmMOzHCfFoZgxhdL+wvVQI0=; b=f7vQLxD2YW9Rb2XqeDmjw+nj47u4CEUV4s7E1D0v3s+y/893rGvwbI3R0Nt6wLf1az psdOC/wstWiP4hfy1rM1Geb8vhwLqXxDX8Mn/ldq24lfz/k1N59q7Xk59Iyl+c4M0xl9 PgHQG2FYv0sB7WU4uMr9hKGor/sWY749IXD/4hqTRi7SDgWFiUoO6KV9+fYOloBtYOU/ /DqEcOh2UNG2jGBIiL+OQsSU16/E4QQcQUcFZvSxlvi4VPDcMcj4BMh1p3G7vRI/XitU ZygTYkmPDfJPYbBxEJtP53X+70Nnbfsf3QTg4xFGLxnYnXyQ6v5PBBKrdQZNNGzHek/W 3C3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gtZvIN8K; 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 u11-20020a170902e80b00b0017dafc02313si699998plg.92.2022.10.24.13.33.36; Mon, 24 Oct 2022 13:33:49 -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=gtZvIN8K; 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 S231827AbiJXUXb (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 16:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233085AbiJXUWn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 16:22:43 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF2FCEBD; Mon, 24 Oct 2022 11:38:23 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id j15so7007872wrq.3; Mon, 24 Oct 2022 11:38:23 -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=dJnt2GP1pm08BDpQHAhmkmMOzHCfFoZgxhdL+wvVQI0=; b=gtZvIN8K3k7r1uHwhEc7+/ToiepvXrRLoYCsg65dKsJr7+zp+7Rd4BFPZHYq6xmI/s U+BDXTd/r9PFSVMu/yjZ4Sf07IW0+jlWi5BvINZdqDm7Y7z4eQR2TmQ6RwSPTAdoTQQ9 jlARxJ/PCtHlhQUtJC0b66o3+iM/th1/2R2yyBOOVgiXpWltxMzpg0iH2T11K9+PdsH/ E6CT8BeZgFfsW1cADQNx54JCen+tOKsRze5ykzfigG/1Lghwvzyt39qVHE4SUCPGAbUx p2pN82oHtzogmLIxs9vJScr2XN1xZHXZYehB8JEPVtddts4gJdARWTKXjZstKe6ZfFVD 6Xqg== 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=dJnt2GP1pm08BDpQHAhmkmMOzHCfFoZgxhdL+wvVQI0=; b=3JwS7y9uEWRqhjI6bK7MrBztLA6eyfQsKvfY9/KUpJ7wx5uSQyY/ThkqskjTFFBWhC 9tcHyT6Q6cOIW77HE9pU6buqxSJH9WzkpGAX7+ySP1UzRF+qmyAGeerCGi2ZpaLTCCF4 s5yY/6VCnXIBO4yqr+qijCmv2mDxONEi9+ZdfjYCkrLish3XsfH4nSVQq0rYgFXtu5Tp KyrVrgjUXgVQPnx1d8edJcLPSAk2kZZyT86FygIzihdgi4oPoMI4XlqbTJkBvEZELco3 Y5ppkKyAiAFXs/Cp8rsG+ZZxWQSlRAPxR6rRSfVeT+Uqmavv0Z/H3PWMifaW5SW0Y2lH 4qag== X-Gm-Message-State: ACrzQf2eUFmVHWCjybvIqRMM+WOR3uI6egmJT63egOV4LuwMgnJQS9Vu Ka3GwU7ksgQPz50FD7we7kYUL0YCm+CdEVxo X-Received: by 2002:adf:d843:0:b0:236:6231:113b with SMTP id k3-20020adfd843000000b002366231113bmr7525187wrl.42.1666622102639; Mon, 24 Oct 2022 07:35:02 -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 r2-20020adfe682000000b002366fb99cdasm3413379wrm.50.2022.10.24.07.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 07:35:02 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: dl2k: remove variable tx_use Date: Mon, 24 Oct 2022 15:35:01 +0100 Message-Id: <20221024143501.2163720-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?1747602509989047571?= X-GMAIL-MSGID: =?utf-8?q?1747602509989047571?= |
Series |
net: dl2k: remove variable tx_use
|
|
Commit Message
Colin Ian King
Oct. 24, 2022, 2:35 p.m. UTC
Variable tx_use 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/ethernet/dlink/dl2k.c | 2 --
1 file changed, 2 deletions(-)
Comments
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Mon, 24 Oct 2022 15:35:01 +0100 you wrote: > Variable tx_use 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/ethernet/dlink/dl2k.c | 2 -- > 1 file changed, 2 deletions(-) Here is the summary with links: - net: dl2k: remove variable tx_use https://git.kernel.org/netdev/net-next/c/d0217284cea7 You are awesome, thank you!
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index 2c67a857a42f..db6615aa921b 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethernet/dlink/dl2k.c @@ -814,7 +814,6 @@ rio_free_tx (struct net_device *dev, int irq) { struct netdev_private *np = netdev_priv(dev); int entry = np->old_tx % TX_RING_SIZE; - int tx_use = 0; unsigned long flag = 0; if (irq) @@ -839,7 +838,6 @@ rio_free_tx (struct net_device *dev, int irq) np->tx_skbuff[entry] = NULL; entry = (entry + 1) % TX_RING_SIZE; - tx_use++; } if (irq) spin_unlock(&np->tx_lock);