提交 7898cf1a 编写于 作者: C Corentin Chary 提交者: Matthew Garrett

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

Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 279f8f95
...@@ -588,8 +588,14 @@ static int eeepc_rfkill_set(void *data, bool blocked) ...@@ -588,8 +588,14 @@ static int eeepc_rfkill_set(void *data, bool blocked)
{ {
int dev_id = (unsigned long)data; int dev_id = (unsigned long)data;
u32 ctrl_param = !blocked; 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) static void eeepc_rfkill_query(struct rfkill *rfkill, void *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册