Skip to content
Commit 3a4cbc19 authored by Yijing Wang's avatar Yijing Wang Committed by Guenter Roeck
Browse files

hwmon: (acpi_power_meter) Fix acpi_bus_get_device() return value check



Since acpi_bus_get_device() returns plain int and not acpi_status,
ACPI_FAILURE() should not be used for checking its return value.  Fix
that.

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent cc76dee1
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