Re: [PATCH] EDAC/igen6: Fix the flood of invalid error reports

From: Markus Elfring
Date: Wed Feb 12 2025 - 07:09:21 EST



> +++ b/drivers/edac/igen6_edac.c
> @@ -785,13 +785,22 @@ static u64 ecclog_read_and_clear(struct igen6_imc *imc)
> {

> + if (ecclog == ~0)

> + if (!(ecclog & (ECC_ERROR_LOG_CE | ECC_ERROR_LOG_UE)))


May these condition checks be combined without repeating the statement “return 0;”?

Regards,
Markus