cpufreq: Simplify switch () in cpufreq_cpu_callback()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 01:30:40 +0000 (03:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:37:07 +0000 (01:37 +0200)
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@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c

index 77d77a4e3b74592112fd4a45ae730cf9b3c85a8b..859281592680f3b12bdd960a81a1506f9690558c 100644 (file)
@@ -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;
 }