atm: fore200e.c: Cleaning up uninitialized variables
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 31 May 2014 23:08:32 +0000 (01:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2014 00:11:03 +0000 (17:11 -0700)
There is a risk that the variable will be used without being initialized.

This was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/fore200e.c

index 204814e..d4725fc 100644 (file)
@@ -2780,7 +2780,7 @@ static struct pci_driver fore200e_pca_driver = {
 
 static int __init fore200e_module_init(void)
 {
-       int err;
+       int err = 0;
 
        printk(FORE200E "FORE Systems 200E-series ATM driver - version " FORE200E_VERSION "\n");