aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2023-02-04 11:02:23 +0000
committerHans de Goede <[email protected]>2023-02-06 13:46:02 +0000
commit23d18a20723b115460014a92c4e9ce631d6455c5 (patch)
tree47d599d694b8d9b3496c231a1d4d6191b15dc71d
parentMAINTAINERS: Add entry for TPMI driver (diff)
downloadkernel-23d18a20723b115460014a92c4e9ce631d6455c5.tar.gz
kernel-23d18a20723b115460014a92c4e9ce631d6455c5.zip
platform/x86: int3472/discrete: Drop unnecessary obj->type == string check
acpi_evaluate_dsm_typed() already verifies the type is the requested type, so this error check is a no-op, drop it. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/platform/x86/intel/int3472/discrete.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/platform/x86/intel/int3472/discrete.c b/drivers/platform/x86/intel/int3472/discrete.c
index 96963e30ab6c..f064da74f50a 100644
--- a/drivers/platform/x86/intel/int3472/discrete.c
+++ b/drivers/platform/x86/intel/int3472/discrete.c
@@ -78,14 +78,6 @@ skl_int3472_get_sensor_module_config(struct int3472_discrete_device *int3472)
return ERR_PTR(-ENODEV);
}
- if (obj->string.type != ACPI_TYPE_STRING) {
- dev_err(int3472->dev,
- "Sensor _DSM returned a non-string value\n");
-
- ACPI_FREE(obj);
- return ERR_PTR(-EINVAL);
- }
-
for (i = 0; i < ARRAY_SIZE(int3472_sensor_configs); i++) {
if (!strcmp(int3472_sensor_configs[i].sensor_module_name,
obj->string.pointer))