[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ef5b12b4-d7f6-421e-9339-8621fb672021@web.de>
Date: Wed, 12 Feb 2025 13:08:38 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Qiuxu Zhuo <qiuxu.zhuo@...el.com>, linux-edac@...r.kernel.org,
Tony Luck <tony.luck@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Borislav Petkov <bp@...en8.de>,
James Morse <james.morse@....com>, John Audia <therealgraysky@...ton.me>,
Mauro Carvalho Chehab <mchehab@...nel.org>, ramses@...l-founded.dev,
Robert Richter <rric@...nel.org>
Subject: Re: [PATCH] EDAC/igen6: Fix the flood of invalid error reports
…
> +++ 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
Powered by blists - more mailing lists