ACPI / cpuidle: avoid assigning signed errno to acpi_status
authorSudeep Holla <Sudeep.Holla@arm.com>
Tue, 25 Nov 2014 14:48:50 +0000 (14:48 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Nov 2014 22:44:52 +0000 (23:44 +0100)
commit6fd8050a35475259c444afc6856d57f4bbd74231
tree652d6f6783219e84c79970f8d987f184e75d5f5d
parentbccac16eeaa8c2428981891d09380672b229f48b
ACPI / cpuidle: avoid assigning signed errno to acpi_status

It's incorrect to assign a signed value to an unsigned acpi_status
variable. This patch fixes it by using a signed integer to return
error values.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c