From: Guenter Roeck Date: Tue, 3 Jan 2017 10:43:32 +0000 (-0800) Subject: watchdog: iTCO_wdt: Simplify module init function X-Git-Tag: v4.14-rc1~1405^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9616bd2a66000a30ff912ac3b1e02391dc2d0c89;p=platform%2Fkernel%2Flinux-rpi.git watchdog: iTCO_wdt: Simplify module init function The 'ret' variable in iTCO_wdt_init_module() does not add any value; drop it. Reviewed-by: Andy Shevchenko Mika Westerberg Signed-off-by: Guenter Roeck --- diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 9b60f42..d8bb7bf 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c @@ -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)