diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-08-25 14:17:15 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-08-25 13:29:20 +0200 |
commit | bd9594ae4c55351f134620ab890259820abf4c43 (patch) | |
tree | 8a903b478e8648a782ca4f47ed2a6dfd5de63d4e /drivers/acpi/property.c | |
parent | 2ea3b19792dbe32287b0c48f3ff7e866f61967c7 (diff) | |
download | linux-bd9594ae4c55351f134620ab890259820abf4c43.tar.gz linux-bd9594ae4c55351f134620ab890259820abf4c43.tar.bz2 linux-bd9594ae4c55351f134620ab890259820abf4c43.zip |
ACPI: property: Remove default association from integer maximum values
Remove the default association from integer maximum value checks. It is
not necessary and has caused a bug in other associations being unnoticed.
Fixes: 923044133367 ("ACPI: property: Unify integer value reading functions")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/property.c')
-rw-r--r-- | drivers/acpi/property.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 91d0e75859d3..d4c168ce428c 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1046,8 +1046,7 @@ static int acpi_data_prop_read_single(const struct acpi_device_data *data, u8 *: U8_MAX, \ u16 *: U16_MAX, \ u32 *: U32_MAX, \ - u64 *: U64_MAX, \ - default: 0U)) { \ + u64 *: U64_MAX)) { \ ret = -EOVERFLOW; \ break; \ } \ |