Commit 5be583c6 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI: processor: perflib: Rearrange unregistration routine

Rearrange acpi_processor_unregister_performance() to follow a more
common error handling pattern and drop a redundant "return" statement
from the end of it.

No expected functional impact.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d8f4ed07
...@@ -754,18 +754,15 @@ void acpi_processor_unregister_performance(unsigned int cpu) ...@@ -754,18 +754,15 @@ void acpi_processor_unregister_performance(unsigned int cpu)
mutex_lock(&performance_mutex); mutex_lock(&performance_mutex);
pr = per_cpu(processors, cpu); pr = per_cpu(processors, cpu);
if (!pr) { if (!pr)
mutex_unlock(&performance_mutex); goto unlock;
return;
}
if (pr->performance) if (pr->performance)
kfree(pr->performance->states); kfree(pr->performance->states);
pr->performance = NULL; pr->performance = NULL;
unlock:
mutex_unlock(&performance_mutex); mutex_unlock(&performance_mutex);
return;
} }
EXPORT_SYMBOL(acpi_processor_unregister_performance); EXPORT_SYMBOL(acpi_processor_unregister_performance);
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