ACPI: property: Remove default association from integer maximum values
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 25 Aug 2022 11:17:15 +0000 (14:17 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Aug 2022 11:29:20 +0000 (13:29 +0200)
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>
drivers/acpi/property.c

index 91d0e75..d4c168c 100644 (file)
@@ -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;                                  \
                        }                                               \