On 2024-05-29 at 00:48:22, admiyo@xxxxxxxxxxxxxxxxxxxxxx (admiyo@xxxxxxxxxxxxxxxxxxxxxx) wrote:
From: Adam Young <admiyo@xxxxxxxxxxxxxxxxxxx>use macros or enums instead of hard coded numbers. That will improve code readability.
--- a/drivers/acpi/acpica/rsaddr.c
+++ b/drivers/acpi/acpica/rsaddr.c
@@ -282,7 +282,7 @@ acpi_rs_get_address_common(struct acpi_resource *resource,
/* Validate the Resource Type */
- if ((address.resource_type > 2) && (address.resource_type < 0xC0)) {
+ if ((address.resource_type > 2) && (address.resource_type < 0xC0) && (address.resource_type != 10)) {
return (FALSE);
}
--
2.34.1