Commit 9a909a14 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

cpufreq: acpi-cpufreq: Drop pointless label from acpi_cpufreq_target()

The "out" label at the final return statement in acpi_cpufreq_target()
is totally pointless, so drop them and modify the code to return the
right values immediately instead of jumping to it.

No functional changes.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 6019d23a
...@@ -434,7 +434,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, ...@@ -434,7 +434,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
} else { } else {
pr_debug("Already at target state (P%d)\n", pr_debug("Already at target state (P%d)\n",
next_perf_state); next_perf_state);
goto out; return 0;
} }
} }
...@@ -456,8 +456,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, ...@@ -456,8 +456,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
cmd.val = (u32) perf->states[next_perf_state].control; cmd.val = (u32) perf->states[next_perf_state].control;
break; break;
default: default:
result = -ENODEV; return -ENODEV;
goto out;
} }
/* cpufreq holds the hotplug lock, so we are safe from here on */ /* cpufreq holds the hotplug lock, so we are safe from here on */
...@@ -480,7 +479,6 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, ...@@ -480,7 +479,6 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
if (!result) if (!result)
perf->state = next_perf_state; perf->state = next_perf_state;
out:
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment