projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40996bc
)
net: farsync: remove redundant initialization for statics
author
Peng Li
<lipeng321@huawei.com>
Tue, 8 Jun 2021 08:12:31 +0000
(16:12 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 8 Jun 2021 19:04:05 +0000
(12:04 -0700)
Should not initialise statics to 0.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/farsync.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/farsync.c
b/drivers/net/wan/farsync.c
index 8db9c842ce1941e71ebfb09f0289f221441b8887..7e408d5311d37200194e1b09cd44e59836ebfd0f 100644
(file)
--- a/
drivers/net/wan/farsync.c
+++ b/
drivers/net/wan/farsync.c
@@
-76,7
+76,7
@@
MODULE_LICENSE("GPL");
static int fst_txq_low = FST_LOW_WATER_MARK;
static int fst_txq_high = FST_HIGH_WATER_MARK;
static int fst_max_reads = 7;
-static int fst_excluded_cards
= 0
;
+static int fst_excluded_cards;
static int fst_excluded_list[FST_MAX_CARDS];
module_param(fst_txq_low, int, 0);
@@
-2401,7
+2401,7
@@
static const struct net_device_ops fst_ops = {
static int
fst_add_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{
- static int no_of_cards_added
= 0
;
+ static int no_of_cards_added;
struct fst_card_info *card;
int err = 0;
int i;