Skip to content

Commit bd9594a

Browse files
Sakari Ailusrafaeljw
authored andcommitted
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: 9230441 ("ACPI: property: Unify integer value reading functions") Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2ea3b19 commit bd9594a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/acpi/property.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,7 @@ static int acpi_data_prop_read_single(const struct acpi_device_data *data,
10461046
u8 *: U8_MAX, \
10471047
u16 *: U16_MAX, \
10481048
u32 *: U32_MAX, \
1049-
u64 *: U64_MAX, \
1050-
default: 0U)) { \
1049+
u64 *: U64_MAX)) { \
10511050
ret = -EOVERFLOW; \
10521051
break; \
10531052
} \

0 commit comments

Comments
 (0)