Skip to content
Commit da8a794d authored by Vishal Verma's avatar Vishal Verma Committed by Greg Kroah-Hartman
Browse files

ACPI: HMAT: remove unnecessary variable initialization



[ Upstream commit 14f16d47 ]

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@kernel.org>
Cc: Liu Shixin <liushixin2@huawei.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarVishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/20221116-acpi_hmat_fix-v2-1-3712569be691@intel.com


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Stable-dep-of: 48d41809 ("ACPI: HMAT: Fix initiator registration for single-initiator systems")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2d16161a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment