From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH v7 07/25] ACPI / APEI: Remove spurious GHES_TO_CLEAR check Date: Tue, 11 Dec 2018 18:18:30 +0100 Message-ID: <20181211171830.GL27375@zn.tnic> References: <20181203180613.228133-1-james.morse@arm.com> <20181203180613.228133-8-james.morse@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20181203180613.228133-8-james.morse@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: James Morse Cc: Rafael Wysocki , Tony Luck , Fan Wu , linux-mm@kvack.org, Marc Zyngier , Catalin Marinas , Will Deacon , Dongjiu Geng , linux-acpi@vger.kernel.org, Naoya Horiguchi , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Len Brown List-Id: linux-acpi@vger.kernel.org On Mon, Dec 03, 2018 at 06:05:55PM +0000, James Morse wrote: > ghes_notify_nmi() checks ghes->flags for GHES_TO_CLEAR before going > on to __process_error(). This is pointless as ghes_read_estatus() > will always set this flag if it returns success, which was checked > earlier in the loop. Remove it. > > Signed-off-by: James Morse > --- > drivers/acpi/apei/ghes.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > index acf0c37e9af9..f7a0ff1c785a 100644 > --- a/drivers/acpi/apei/ghes.c > +++ b/drivers/acpi/apei/ghes.c > @@ -936,9 +936,6 @@ static int ghes_notify_nmi(unsigned int cmd, struct pt_regs *regs) > __ghes_panic(ghes); > } > > - if (!(ghes->flags & GHES_TO_CLEAR)) > - continue; > - > __process_error(ghes); > ghes_clear_estatus(ghes, buf_paddr); > } > -- Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.