From: Thomas Gleixner Date: Tue, 21 Jul 2009 07:54:05 +0000 (+0200) Subject: sched: Fix return value of migration_init() X-Git-Tag: v2.6.32-rc1~719^2~42 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a004cd42181409eda70804ded240a791f4564d61;p=karo-tx-linux.git sched: Fix return value of migration_init() migration_init() returns the return value of the hotplug notifier. In the success case this is NOTIFY_OK which is 1. initcall_debug evaluates that as an error code because init calls are expected to return 0 on success. Signed-off-by: Thomas Gleixner --- diff --git a/kernel/sched.c b/kernel/sched.c index 1f7919add8ae..953f037dc053 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -7654,7 +7654,7 @@ static int __init migration_init(void) migration_call(&migration_notifier, CPU_ONLINE, cpu); register_cpu_notifier(&migration_notifier); - return err; + return 0; } early_initcall(migration_init); #endif