ACPI: HMAT: remove unnecessary variable initialization
stable inclusion from stable-v5.10.158 commit f3b76b4d38fd455e95bc6aef917220b354b8b826 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f3b76b4d38fd455e95bc6aef917220b354b8b826 -------------------------------- [ 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:Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Vishal Verma <vishal.l.verma@intel.com> Link: https://lore.kernel.org/r/20221116-acpi_hmat_fix-v2-1-3712569be691@intel.com Signed-off-by:
Dan Williams <dan.j.williams@intel.com> Stable-dep-of: 48d41809 ("ACPI: HMAT: Fix initiator registration for single-initiator systems") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment