Skip to content

Commit

Permalink
cpufreq: e_powersaver: remove unreachable break
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Qilong authored and Rafael J. Wysocki committed Oct 27, 2020
1 parent 3650b22 commit 6e9643a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/cpufreq/e_powersaver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion drivers/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ static void longhaul_setup_voltagescaling(void)
break;
default:
return;
break;
}
if (min_vid_speed >= highest_speed)
return;
Expand Down

0 comments on commit 6e9643a

Please sign in to comment.