diff options
Diffstat (limited to 'drivers/acpi/processor_throttling.c')
-rw-r--r-- | drivers/acpi/processor_throttling.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c index 73aed5f5b973..d0d1f4d50434 100644 --- a/drivers/acpi/processor_throttling.c +++ b/drivers/acpi/processor_throttling.c | |||
@@ -783,11 +783,9 @@ static int acpi_get_throttling_state(struct acpi_processor *pr, | |||
783 | (struct acpi_processor_tx_tss *)&(pr->throttling. | 783 | (struct acpi_processor_tx_tss *)&(pr->throttling. |
784 | states_tss[i]); | 784 | states_tss[i]); |
785 | if (tx->control == value) | 785 | if (tx->control == value) |
786 | break; | 786 | return i; |
787 | } | 787 | } |
788 | if (i > pr->throttling.state_count) | 788 | return -1; |
789 | i = -1; | ||
790 | return i; | ||
791 | } | 789 | } |
792 | 790 | ||
793 | static int acpi_get_throttling_value(struct acpi_processor *pr, | 791 | static int acpi_get_throttling_value(struct acpi_processor *pr, |