staging/qlge: remove initialising of static local variable
authorDorothea Ehrl <dorothea.ehrl@fau.de>
Wed, 27 Nov 2019 12:30:48 +0000 (13:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:34:42 +0000 (10:34 +0100)
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>
drivers/staging/qlge/qlge_main.c

index 6ad4515..587102a 100644 (file)
@@ -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),