watchdog: iTCO_wdt: Simplify module init function
authorGuenter Roeck <linux@roeck-us.net>
Tue, 3 Jan 2017 10:43:32 +0000 (02:43 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
The 'ret' variable in iTCO_wdt_init_module() does not add any value;
drop it.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/iTCO_wdt.c

index 9b60f4201c261a85c2dcf997882a8fe3937ba514..d8bb7bf5e6698dc0cd142c412c5530e92d69dd3e 100644 (file)
@@ -612,15 +612,9 @@ static struct platform_driver iTCO_wdt_driver = {
 
 static int __init iTCO_wdt_init_module(void)
 {
-       int err;
-
        pr_info("Intel TCO WatchDog Timer Driver v%s\n", DRV_VERSION);
 
-       err = platform_driver_register(&iTCO_wdt_driver);
-       if (err)
-               return err;
-
-       return 0;
+       return platform_driver_register(&iTCO_wdt_driver);
 }
 
 static void __exit iTCO_wdt_cleanup_module(void)