ACPI: processor: throttling: remove variable count
authorColin Ian King <colin.i.king@gmail.com>
Mon, 24 Oct 2022 13:32:58 +0000 (14:32 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Oct 2022 17:02:45 +0000 (19:02 +0200)
Variable count is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_throttling.c

index a822fe4..00d045e 100644 (file)
@@ -50,7 +50,7 @@ static int __acpi_processor_set_throttling(struct acpi_processor *pr,
 
 static int acpi_processor_update_tsd_coord(void)
 {
-       int count, count_target;
+       int count_target;
        int retval = 0;
        unsigned int i, j;
        cpumask_var_t covered_cpus;
@@ -107,7 +107,6 @@ static int acpi_processor_update_tsd_coord(void)
 
                /* Validate the Domain info */
                count_target = pdomain->num_processors;
-               count = 1;
 
                for_each_possible_cpu(j) {
                        if (i == j)
@@ -140,7 +139,6 @@ static int acpi_processor_update_tsd_coord(void)
 
                        cpumask_set_cpu(j, covered_cpus);
                        cpumask_set_cpu(j, pthrottling->shared_cpu_map);
-                       count++;
                }
                for_each_possible_cpu(j) {
                        if (i == j)