Commit 7898cf1a authored by Corentin Chary's avatar Corentin Chary Committed by Matthew Garrett

eeepc-wmi: return proper error code in eeepc_rfkill_set()

Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 279f8f95
......@@ -588,8 +588,14 @@ static int eeepc_rfkill_set(void *data, bool blocked)
{
int dev_id = (unsigned long)data;
u32 ctrl_param = !blocked;
acpi_status status;
status = eeepc_wmi_set_devstate(dev_id, ctrl_param, NULL);
if (ACPI_FAILURE(status))
return -EIO;
return eeepc_wmi_set_devstate(dev_id, ctrl_param, NULL);
return 0;
}
static void eeepc_rfkill_query(struct rfkill *rfkill, void *data)
......
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