[PATCH] cpufreq: Simplify switch () in cpufreq_cpu_callback()

From: Rafael J. Wysocki
Date: Wed Apr 06 2016 - 21:28:15 EST


From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

Merge two switch entries that do the same thing in
cpufreq_cpu_callback().

No functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
---
drivers/cpufreq/cpufreq.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

Index: linux-pm/drivers/cpufreq/cpufreq.c
===================================================================
--- linux-pm.orig/drivers/cpufreq/cpufreq.c
+++ linux-pm/drivers/cpufreq/cpufreq.c
@@ -2312,16 +2312,13 @@ static int cpufreq_cpu_callback(struct n

switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
+ case CPU_DOWN_FAILED:
cpufreq_online(cpu);
break;

case CPU_DOWN_PREPARE:
cpufreq_offline(cpu);
break;
-
- case CPU_DOWN_FAILED:
- cpufreq_online(cpu);
- break;
}
return NOTIFY_OK;
}