small rdc-2.6 fixes (from sn9, thanks!)
[openwrt/svn-archive/archive.git] / target / linux / rdc-2.6 / files / arch / i386 / mach-rdc / wdt.c
index 12ae4c5ec157dd1f8bcd73d639caec1a3ab117d2..39956f35a77bc4b0891fd141def7b55d224debf7 100644 (file)
@@ -212,7 +212,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
 
        if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) {
                printk(KERN_ERR PFX "misc_register failed\n");
-               goto no_misc;
+               return err;
        }
 
        /* Reset the watchdog */
@@ -230,9 +230,6 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
        printk(KERN_INFO PFX "init success\n");
 
        return 0;
-
-no_misc:
-       return err;
 }
 
 static int rdc321x_wdt_remove(struct platform_device *pdev)