Re: [PATCH 1/2] ACPI: HMAT: remove unnecessary variable initialization
From: Kirill A. Shutemov
Date: Wed Nov 16 2022 - 07:41:41 EST
On Wed, Nov 16, 2022 at 12:57:35AM -0700, Vishal Verma wrote:
> In hmat_register_target_initiators(), the variable 'best' gets
> initialized in the outer per-locality-type for loop. The initialization
> just before setting up 'Access 1' targets was unnecessary. Remove it.
>
> Cc: Rafael J. Wysocki <rafael@xxxxxxxxxx>
> Cc: Liu Shixin <liushixin2@xxxxxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Signed-off-by: Vishal Verma <vishal.l.verma@xxxxxxxxx>
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
--
Kiryl Shutsemau / Kirill A. Shutemov