Skip to content

Commit

Permalink
platform/x86: dell-ddv: Replace EIO with ENOMSG
Browse files Browse the repository at this point in the history
When the ACPI WMI interface returns a valid ACPI object
which has the wrong type, then ENOMSG instead of EIO
should be returned, since the WMI method was still
successfully evaluated.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230126194021.381092-4-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Armin Wolf authored and Hans de Goede committed Feb 3, 2023
1 parent 36d4482 commit 8b52501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/dell/dell-wmi-ddv.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int dell_wmi_ddv_query_type(struct wmi_device *wdev, enum dell_ddv_method

if (obj->type != type) {
kfree(obj);
return -EIO;
return -ENOMSG;
}

*result = obj;
Expand Down

0 comments on commit 8b52501

Please sign in to comment.