[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210712205848.GA1492971@pc>
Date: Mon, 12 Jul 2021 21:58:48 +0100
From: Salah Triki <salah.triki@...il.com>
To: kevin.curtis@...site.co.uk, davem@...emloft.net, kuba@...nel.org,
stephen@...workplumber.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] delete useless for loop
Delete useless initialization of fst_card_array since the default
initialization is NULL.
Signed-off-by: Salah Triki <salah.triki@...il.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
Powered by blists - more mailing lists