Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 279f8f95
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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)