projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8496bac
)
platform/x86: think-lmi: Properly interpret return value of tlmi_setting
author
Thomas Weißschuh
<linux@weissschuh.net>
Sun, 12 Mar 2023 03:47:57 +0000
(
03:47
+0000)
committer
Hans de Goede
<hdegoede@redhat.com>
Thu, 16 Mar 2023 14:42:03 +0000
(15:42 +0100)
The return value of tlmi_settings() is an errorcode, not an acpi_status.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link:
https://lore.kernel.org/r/20230312-think-lmi-status-v1-1-4e9f36322cc4@weissschuh.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/think-lmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/think-lmi.c
b/drivers/platform/x86/think-lmi.c
index 86b33b74519bed079c0360381b3e45ee962e6abd..c924e9e4a6a5bd67712faa263e5ba36beba0c080 100644
(file)
--- a/
drivers/platform/x86/think-lmi.c
+++ b/
drivers/platform/x86/think-lmi.c
@@
-1353,7
+1353,6
@@
static struct tlmi_pwd_setting *tlmi_create_auth(const char *pwd_type,
static int tlmi_analyze(void)
{
- acpi_status status;
int i, ret;
if (wmi_has_guid(LENOVO_SET_BIOS_SETTINGS_GUID) &&
@@
-1390,8
+1389,8
@@
static int tlmi_analyze(void)
char *p;
tlmi_priv.setting[i] = NULL;
-
status
= tlmi_setting(i, &item, LENOVO_BIOS_SETTING_GUID);
- if (
ACPI_FAILURE(status)
)
+
ret
= tlmi_setting(i, &item, LENOVO_BIOS_SETTING_GUID);
+ if (
ret
)
break;
if (!item)
break;