From: Rafael J. Wysocki Date: Thu, 7 Apr 2016 01:30:40 +0000 (+0200) Subject: cpufreq: Simplify switch () in cpufreq_cpu_callback() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cd73e9b01f635d25dbd17ed090f9351becf00280;p=openwrt%2Fstaging%2Fblogic.git cpufreq: Simplify switch () in cpufreq_cpu_callback() Merge two switch entries that do the same thing in cpufreq_cpu_callback(). No functional changes. Signed-off-by: Rafael J. Wysocki Acked-by: Viresh Kumar --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 77d77a4e3b74..859281592680 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2309,16 +2309,13 @@ static int cpufreq_cpu_callback(struct notifier_block *nfb, 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; }