ACPI / processor: return specific error instead of -1
authorHanjun Guo <hanjun.guo@linaro.org>
Mon, 11 May 2015 04:17:18 +0000 (12:17 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 May 2015 21:28:16 +0000 (23:28 +0200)
commitd3da7cb9d243c484fcb05e6c16f55090fba99702
tree6c0130780d6ff562c0792bd6d8f9a7de845a641a
parent8416c5bda17c1c4f5bd710ef6ebba8827a719e74
ACPI / processor: return specific error instead of -1

Since invalid_logical_cpuid() can check error values, so
return specific error instead of -1 for acpi_map_cpuid().

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_core.c