Message ID | 20221024125951.2155434-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 l7csp511556wru; Mon, 24 Oct 2022 08:25:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jZ3SwDVRUlak62mIzeR1WmdMonZanCcJoFURnLpzOkRcrnh3xw9C1QwOcryrwruD/hYvd X-Received: by 2002:a17:90b:60e:b0:212:d5cd:4e58 with SMTP id gb14-20020a17090b060e00b00212d5cd4e58mr19167421pjb.165.1666625153203; Mon, 24 Oct 2022 08:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666625153; cv=none; d=google.com; s=arc-20160816; b=vrozF3b/hniSkwixVCsu1mJTESoK9D4g0vke3BllkNWqjRfFY1BFgj4gxmWypqjWkc fjGuXmcgEubZR6WMlXTIme0wbclxLluz9uJgrOv5+omkKJJXC1UDC34jukUEZW0QHR2h JEEwv0ZxOyAwSd5rUWSEYgJh8z1hNBycztH8so2adIfjOk+xiQ0ZgQ+uee2TAcMiHZ3Q 75M2FnEK08OA9jiRLGcMKwZXHqBZphXO27G1Z5EB2qWp8/3fIvyAonUxyLLyKqqwv4c/ Vp5/m7lgasniwRvkGOFz5K/he2ppO9GMt8FQ0czwuZC0PdoBBZauQL3DMWmeZBmnAn52 arYg== 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=xC70jAVieGTzMnfL7IzZSmpj/LnjOjc/7R5G039BdH4=; b=PzrdVua8u+bZZdiSj8fhiXtMG91oJNLtw7OYWISlGwztyZnxOtQE/65dkARKYjdW3r hk0gWq7U/a2olaLKgvbtCItTGRoFBGPOVbB88D6q/+UIsbGL8osxA8WHLvWplV6pXzxZ CXo7LcppITAWBB+wyfXmqooGnEGdvVi3J5lbl8/ZLUTAl3bcy+PyeHcdKwV0xCx1URvC gX1989dau/aLqd62hX3Y80HTOJIee9NTcj5Dh+mfadC9RIQMPc4WIFjf3s5odelzcvCi J9PNChVGeq2noOxX69sYKERZGa7ZtVSaiHmyerBJ80iiS16NjGFecnvU3JWArZV94hnT g0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cxwnRuee; 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 z13-20020a170903018d00b00177f35ce11fsi7769567plg.22.2022.10.24.08.25.39; Mon, 24 Oct 2022 08:25:53 -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=cxwnRuee; 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 S235258AbiJXOwm (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 10:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbiJXOwQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 10:52:16 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645A9356E2; Mon, 24 Oct 2022 06:29:53 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id v11so6587121wmd.1; Mon, 24 Oct 2022 06:29:53 -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=xC70jAVieGTzMnfL7IzZSmpj/LnjOjc/7R5G039BdH4=; b=cxwnRuee9VdpxGyeEmF8k/HuqMe2jOY2jNiCnas50PQCqNiw1TVLQwe1WX0v/MXQfo GR5sQ0qfyKRsqghWwvF8Ly/JgwWsYP8dishLvgkaS9S986ocrhWh7uxI9ReKikKJmtAv SRbJ9L7b2EmcTxOQ3dsCQk6rOSECeS4oGtbzvh74BY0KwYAh2NsJoO9km72lQ6DFkgFe +8XkcNlii2xPTTxe9ni3ooxJeYRZE1Ez4YIyhJZoqE9CZm24C7IURcwz26RVQIyluF0U kMibKNSnkn7u9VqdCOqq4ye/dBo3Iu/Sz4tbZA9rbJk1kRv5GAr/al/5vM0c2z7MNGcD WJ3g== 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=xC70jAVieGTzMnfL7IzZSmpj/LnjOjc/7R5G039BdH4=; b=IWH6jsJ6zjM2g/WQfZoq8fphvR91YgJiIbPQugS76zy9CYwIcMPGQ1sSoY8h4PFbla afg9gKDENnp56XnbA294p5pu5SxcUfZO9Wi8pOimaswU2sfKWdj3DxxxFkuorHg1wOHr 4TxF00lMDkYPnSQJaG0aw/fqDDSswjjFep22fqOSxpEPmXjacb/Dnmj57R74EvFUyibL OEEmas2I8qImm775j+AZbn1gKZ7U1i8Cbr9z2ce/la7c8PcQGBWtBQ2zb2qS00+MjiXc GO0ZrkiNTPozCCVJwaX19pVoH3X3i8EdS81X83LLFYrdSO3BFCID34vqPFq4TRod+zc+ UHOQ== X-Gm-Message-State: ACrzQf0BDwwH6OqbSrTVfg9YKzgIpIpclvBP4QrCM8bQAXfdLKwVY1dP sAz2bCXpeDPkP8TtyaDbIUozj1cysLtWQQ== X-Received: by 2002:a05:600c:4e06:b0:3c6:ce02:ece4 with SMTP id b6-20020a05600c4e0600b003c6ce02ece4mr21217981wmq.58.1666616393256; Mon, 24 Oct 2022 05:59:53 -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 h42-20020a05600c49aa00b003a5537bb2besm10734058wmp.25.2022.10.24.05.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 05:59:52 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Rasesh Mody <rmody@marvell.com>, Sudarsana Kalluru <skalluru@marvell.com>, GR-Linux-NIC-Dev@marvell.com, "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] bna: remove variable num_entries Date: Mon, 24 Oct 2022 13:59:51 +0100 Message-Id: <20221024125951.2155434-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?1747583136704938239?= X-GMAIL-MSGID: =?utf-8?q?1747583136704938239?= |
Series |
bna: remove variable num_entries
|
|
Commit Message
Colin Ian King
Oct. 24, 2022, 12:59 p.m. UTC
Variable num_entries 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/brocade/bna/bfa_msgq.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 13:59:51 +0100 you wrote: > Variable num_entries 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/brocade/bna/bfa_msgq.c | 2 -- > 1 file changed, 2 deletions(-) Here is the summary with links: - bna: remove variable num_entries https://git.kernel.org/netdev/net-next/c/bb214ac47e0a You are awesome, thank you!
diff --git a/drivers/net/ethernet/brocade/bna/bfa_msgq.c b/drivers/net/ethernet/brocade/bna/bfa_msgq.c index 47125f419530..fa40d5ec6f1c 100644 --- a/drivers/net/ethernet/brocade/bna/bfa_msgq.c +++ b/drivers/net/ethernet/brocade/bna/bfa_msgq.c @@ -202,7 +202,6 @@ static void __cmd_copy(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq_cmd_entry *cmd) { size_t len = cmd->msg_size; - int num_entries = 0; size_t to_copy; u8 *src, *dst; @@ -219,7 +218,6 @@ __cmd_copy(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq_cmd_entry *cmd) BFA_MSGQ_INDX_ADD(cmdq->producer_index, 1, cmdq->depth); dst = (u8 *)cmdq->addr.kva; dst += (cmdq->producer_index * BFI_MSGQ_CMD_ENTRY_SIZE); - num_entries++; } }