mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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 <andy.shevchenko@gmail.com> Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
78e45696d5
commit
9616bd2a66
@ -612,15 +612,9 @@ static struct platform_driver iTCO_wdt_driver = {
|
|||||||
|
|
||||||
static int __init iTCO_wdt_init_module(void)
|
static int __init iTCO_wdt_init_module(void)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
|
|
||||||
pr_info("Intel TCO WatchDog Timer Driver v%s\n", DRV_VERSION);
|
pr_info("Intel TCO WatchDog Timer Driver v%s\n", DRV_VERSION);
|
||||||
|
|
||||||
err = platform_driver_register(&iTCO_wdt_driver);
|
return platform_driver_register(&iTCO_wdt_driver);
|
||||||
if (err)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit iTCO_wdt_cleanup_module(void)
|
static void __exit iTCO_wdt_cleanup_module(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user