summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2020-10-23 11:58:39 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-10-27 18:42:54 +0100
commit6e9643a864aa4d532b0d467bacc18a15adf5ca82 (patch)
treed41c2819d7cb356ceb917c6311b285f887cebc17 /drivers/cpufreq
parentLinux 5.10-rc1 (diff)
downloadlinux-6e9643a864aa4d532b0d467bacc18a15adf5ca82.tar.xz
linux-6e9643a864aa4d532b0d467bacc18a15adf5ca82.zip
cpufreq: e_powersaver: remove unreachable break
A 'break' following a 'return' statement is pointless, so remove it. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/e_powersaver.c1
-rw-r--r--drivers/cpufreq/longhaul.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c
index 776a58bab0ff..ab93bce8ae77 100644
--- a/drivers/cpufreq/e_powersaver.c
+++ b/drivers/cpufreq/e_powersaver.c
@@ -223,7 +223,6 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
case EPS_BRAND_C3:
pr_cont("C3\n");
return -ENODEV;
- break;
}
/* Enable Enhanced PowerSaver */
rdmsrl(MSR_IA32_MISC_ENABLE, val);
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c
index 123fb006810d..182a4dbca095 100644
--- a/drivers/cpufreq/longhaul.c
+++ b/drivers/cpufreq/longhaul.c
@@ -593,7 +593,6 @@ static void longhaul_setup_voltagescaling(void)
break;
default:
return;
- break;
}
if (min_vid_speed >= highest_speed)
return;