Skip to content

Commit

Permalink
ACPI: processor: throttling: remove variable count
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Rafael J. Wysocki committed Oct 28, 2022
1 parent 2437513 commit 04068da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/acpi/processor_throttling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 04068da

Please sign in to comment.