[IRDA]: fix drivers/net/irda/ali-ircc.c:ali_ircc_init()
[deliverable/linux.git] / drivers / net / irda / ali-ircc.c
index bf1fca5a3fa056b3298be53d8119c27c45dd787b..e3c8cd5eca676c8b126b5624607ea8577c12c702 100644 (file)
@@ -146,7 +146,7 @@ static int __init ali_ircc_init(void)
 {
        ali_chip_t *chip;
        chipio_t info;
-       int ret = -ENODEV;
+       int ret;
        int cfg, cfg_base;
        int reg, revision;
        int i = 0;
@@ -160,6 +160,7 @@ static int __init ali_ircc_init(void)
                 return ret;
         }
 
+       ret = -ENODEV;
        
        /* Probe for all the ALi chipsets we know about */
        for (chip= chips; chip->name; chip++, i++) 
This page took 0.024979 seconds and 5 git commands to generate.