[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240529032541.GA2452291@maili.marvell.com>
Date: Wed, 29 May 2024 08:55:41 +0530
From: Ratheesh Kannoth <rkannoth@...vell.com>
To: <admiyo@...amperecomputing.com>
CC: Robert Moore <robert.moore@...el.com>,
"Rafael J. Wysocki"
<rafael.j.wysocki@...el.com>,
Len Brown <lenb@...nel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/3] mctp pcc: Allow PCC Data Type in MCTP resource.
On 2024-05-29 at 00:48:22, admiyo@...amperecomputing.com (admiyo@...amperecomputing.com) wrote:
> From: Adam Young <admiyo@...erecomputing.com>
> --- 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)) {
use macros or enums instead of hard coded numbers. That will improve code readability.
> return (FALSE);
> }
>
> --
> 2.34.1
>
Powered by blists - more mailing lists