Patch "ACPI: HMAT: remove unnecessary variable initialization" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ACPI: HMAT: remove unnecessary variable initialization

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     acpi-hmat-remove-unnecessary-variable-initialization.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 05f0bef5e777f3f62e4b6a2735fe0e53c399819f
Author: Vishal Verma <vishal.l.verma@xxxxxxxxx>
Date:   Wed Nov 16 16:37:36 2022 -0700

    ACPI: HMAT: remove unnecessary variable initialization
    
    [ Upstream commit 14f16d47561ba9249efc6c2db9d47ed56841f070 ]
    
    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>
    Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
    Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
    Signed-off-by: Vishal Verma <vishal.l.verma@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20221116-acpi_hmat_fix-v2-1-3712569be691@xxxxxxxxx
    Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
    Stable-dep-of: 48d4180939e1 ("ACPI: HMAT: Fix initiator registration for single-initiator systems")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/acpi/numa/hmat.c b/drivers/acpi/numa/hmat.c
index c3d783aca196..fca69a726360 100644
--- a/drivers/acpi/numa/hmat.c
+++ b/drivers/acpi/numa/hmat.c
@@ -645,7 +645,6 @@ static void hmat_register_target_initiators(struct memory_target *target)
 	/* Access 1 ignores Generic Initiators */
 	bitmap_zero(p_nodes, MAX_NUMNODES);
 	list_sort(p_nodes, &initiators, initiator_cmp);
-	best = 0;
 	for (i = WRITE_LATENCY; i <= READ_BANDWIDTH; i++) {
 		loc = localities_types[i];
 		if (!loc)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux