Skip to content

Commit

Permalink
sched: Fix return value of migration_init()
Browse files Browse the repository at this point in the history
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 <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Jul 24, 2009
1 parent def01bc commit a004cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a004cd4

Please sign in to comment.