From: David Brown Date: Wed, 30 Mar 2011 18:26:57 +0000 (-0700) Subject: msm: timer: fix missing return value X-Git-Tag: firefly_0821_release~7613^2~1591^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=893b66c39da812e7dd0d7b32aa0633e5d90d950c;p=firefly-linux-kernel-4.4.55.git msm: timer: fix missing return value Change af90f10d38 "ARM: 6759/1: smp: Select local timers vs broadcast timer support runtime" missed a return statement, causing a compile warning: arch/arm/mach-msm/timer.c:272: warning: 'return' with no value, in function returning non-void Trivially return 0 for success when running on cpu 0 (to match the comment and previous behavior). Signed-off-by: David Brown --- diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index 56f920c55b6a..38b95e949d13 100644 --- a/arch/arm/mach-msm/timer.c +++ b/arch/arm/mach-msm/timer.c @@ -269,7 +269,7 @@ int __cpuinit local_timer_setup(struct clock_event_device *evt) /* Use existing clock_event for cpu 0 */ if (!smp_processor_id()) - return; + return 0; writel(DGT_CLK_CTL_DIV_4, MSM_TMR_BASE + DGT_CLK_CTL);