mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
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: 9230441333
("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>
This commit is contained in:
parent
2ea3b19792
commit
bd9594ae4c
@ -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; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user