Re: [PATCH v2 4/9] ACPI: APEI: EINJ: Remove redundant calls to einj_get_available_error_type
From: Jonathan Cameron
Date: Tue Dec 24 2024 - 10:32:17 EST
On Thu, 5 Dec 2024 13:18:49 -0800
Zaid Alali <zaidal@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> A single call to einj_get_available_error_type in init function is
> sufficient to save the return value in a global variable to be used
> later in various places in the code. This commit does not introduce
> any functional changes, but only removing unnecessary redundant
> function calls.
>
> Signed-off-by: Zaid Alali <zaidal@xxxxxxxxxxxxxxxxxxxxxx>
ok. I guess this is ok given how many globals are in use in here
already.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>