Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <davidb@codeaurora.org>

+1 -1
+1 -1
arch/arm/mach-msm/timer.c
··· 269 269 270 270 /* Use existing clock_event for cpu 0 */ 271 271 if (!smp_processor_id()) 272 - return; 272 + return 0; 273 273 274 274 writel(DGT_CLK_CTL_DIV_4, MSM_TMR_BASE + DGT_CLK_CTL); 275 275