Skip to content

Commit 0a39894

Browse files
Neal Liurafaeljw
authored andcommitted
cpuidle: ACPI: fix 'return' with no value build warning
Add return value to fix return-type build warning introduced by commit efe9711 ("cpuidle: change enter_s2idle() prototype"). Fixes: efe9711 ("cpuidle: change enter_s2idle() prototype") Signed-off-by: Neal Liu <[email protected]> [ rjw: Subject & changelog edits, make acpi_idle_enter_s2idle() return 0 in all cases ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a472ad2 commit 0a39894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/processor_idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,11 @@ static int acpi_idle_enter_s2idle(struct cpuidle_device *dev,
664664
struct acpi_processor *pr = __this_cpu_read(processors);
665665

666666
if (unlikely(!pr))
667-
return;
667+
return 0;
668668

669669
if (pr->flags.bm_check) {
670670
acpi_idle_enter_bm(pr, cx, false);
671-
return;
671+
return 0;
672672
} else {
673673
ACPI_FLUSH_CPU_CACHE();
674674
}

0 commit comments

Comments
 (0)