Skip to content

Commit

Permalink
net: farsync: remove redundant initialization for statics
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peng Li authored and David S. Miller committed Jun 8, 2021
1 parent 40996bc commit 8ccac4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8ccac4a

Please sign in to comment.