Skip to content

Commit 04068da

Browse files
ColinIanKingrafaeljw
authored andcommitted
ACPI: processor: throttling: remove variable count
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2437513 commit 04068da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/acpi/processor_throttling.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int __acpi_processor_set_throttling(struct acpi_processor *pr,
5050

5151
static int acpi_processor_update_tsd_coord(void)
5252
{
53-
int count, count_target;
53+
int count_target;
5454
int retval = 0;
5555
unsigned int i, j;
5656
cpumask_var_t covered_cpus;
@@ -107,7 +107,6 @@ static int acpi_processor_update_tsd_coord(void)
107107

108108
/* Validate the Domain info */
109109
count_target = pdomain->num_processors;
110-
count = 1;
111110

112111
for_each_possible_cpu(j) {
113112
if (i == j)
@@ -140,7 +139,6 @@ static int acpi_processor_update_tsd_coord(void)
140139

141140
cpumask_set_cpu(j, covered_cpus);
142141
cpumask_set_cpu(j, pthrottling->shared_cpu_map);
143-
count++;
144142
}
145143
for_each_possible_cpu(j) {
146144
if (i == j)

0 commit comments

Comments
 (0)