summaryrefslogtreecommitdiffstats
path: root/drivers/staging/qlge
diff options
context:
space:
mode:
authorDorothea Ehrl <dorothea.ehrl@fau.de>2019-11-27 13:30:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-10 10:34:42 +0100
commitf41e1a0a9462fcc0d4423600f6f6e6fabd2e8b16 (patch)
treec36dd5ffb76f1aa6aabbf148b52c9856323bad82 /drivers/staging/qlge
parent9a92d02c3f0b6248b5447dc84637a8d37ba7db28 (diff)
downloadlinux-f41e1a0a9462fcc0d4423600f6f6e6fabd2e8b16.tar.gz
linux-f41e1a0a9462fcc0d4423600f6f6e6fabd2e8b16.tar.bz2
linux-f41e1a0a9462fcc0d4423600f6f6e6fabd2e8b16.zip
staging/qlge: remove initialising of static local variable
This patch fixes "ERROR: do not initialise statics to 0" by checkpatch.pl. Signed-off-by: Dorothea Ehrl <dorothea.ehrl@fau.de> Co-developed-by: Vanessa Hack <vanessa.hack@fau.de> Signed-off-by: Vanessa Hack <vanessa.hack@fau.de> Link: https://lore.kernel.org/r/20191127123052.16424-1-dorothea.ehrl@fau.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/qlge')
-rw-r--r--drivers/staging/qlge/qlge_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c
index 6ad4515311f7..587102aa7fbf 100644
--- a/drivers/staging/qlge/qlge_main.c
+++ b/drivers/staging/qlge/qlge_main.c
@@ -4578,7 +4578,7 @@ static int qlge_probe(struct pci_dev *pdev,
{
struct net_device *ndev = NULL;
struct ql_adapter *qdev = NULL;
- static int cards_found = 0;
+ static int cards_found;
int err = 0;
ndev = alloc_etherdev_mq(sizeof(struct ql_adapter),