platform/x86: dell-ddv: Replace EIO with ENOMSG
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>
This commit is contained in:
parent
36d44825fa
commit
8b52501c40
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue