From: Salah Triki <salah.triki@gmail.com>
To: kevin.curtis@farsite.co.uk, davem@davemloft.net, kuba@kernel.org,
stephen@networkplumber.org
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] delete useless for loop
Date: Mon, 12 Jul 2021 21:58:48 +0100 [thread overview]
Message-ID: <20210712205848.GA1492971@pc> (raw)
Delete useless initialization of fst_card_array since the default
initialization is NULL.
Signed-off-by: Salah Triki <salah.triki@gmail.com>
---
drivers/net/wan/farsync.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c
index b3466e084e84..0b3f561d5d5e 100644
--- a/drivers/net/wan/farsync.c
+++ b/drivers/net/wan/farsync.c
@@ -2565,10 +2565,6 @@ static struct pci_driver fst_driver = {
static int __init
fst_init(void)
{
- int i;
-
- for (i = 0; i < FST_MAX_CARDS; i++)
- fst_card_array[i] = NULL;
return pci_register_driver(&fst_driver);
}
--
2.25.1
next reply other threads:[~2021-07-12 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-12 20:58 Salah Triki [this message]
2021-07-13 6:41 ` [PATCH] delete useless for loop Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210712205848.GA1492971@pc \
--to=salah.triki@gmail.com \
--cc=davem@davemloft.net \
--cc=kevin.curtis@farsite.co.uk \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.