Skip to content

Commit 14f16d4

Browse files
stellarhopperdjbw
authored andcommitted
ACPI: HMAT: remove unnecessary variable initialization
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 <[email protected]> Cc: Liu Shixin <[email protected]> Cc: Dan Williams <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Vishal Verma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 094226a commit 14f16d4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/acpi/numa/hmat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,6 @@ static void hmat_register_target_initiators(struct memory_target *target)
644644
/* Access 1 ignores Generic Initiators */
645645
bitmap_zero(p_nodes, MAX_NUMNODES);
646646
list_sort(p_nodes, &initiators, initiator_cmp);
647-
best = 0;
648647
for (i = WRITE_LATENCY; i <= READ_BANDWIDTH; i++) {
649648
loc = localities_types[i];
650649
if (!loc)

0 commit comments

Comments
 (0)