ACPI: CPPC: clean up acpi_get_psd_map()
authorLiguang Zhang <zhangliguang@linux.alibaba.com>
Thu, 26 Mar 2020 14:29:10 +0000 (22:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 28 Mar 2020 12:25:41 +0000 (13:25 +0100)
commitb17b80645453f8c3174d5d3b55e590cb6a76ca29
treecc2fcf9fd57efb6bc4237f19946b44998ef26610
parent16fbf79b0f83bc752cee8589279f1ebfe57b3b6e
ACPI: CPPC: clean up acpi_get_psd_map()

In acpi_get_psd_map() variable all_cpu_data[] can't be NULL and variable
match_cpc_ptr has been checked before, no need check again at the end of
the funchtion.

Some additional optimizations can be made on top of that.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c