]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/processor_throttling.c
Merge branch 'misc' into release
[linux-2.6-omap-h63xx.git] / drivers / acpi / processor_throttling.c
index 73aed5f5b973e73a500b0fad3abe230107ec26cf..d0d1f4d5043442718c9c361fce497a0ca38b9cbe 100644 (file)
@@ -783,11 +783,9 @@ static int acpi_get_throttling_state(struct acpi_processor *pr,
                    (struct acpi_processor_tx_tss *)&(pr->throttling.
                                                      states_tss[i]);
                if (tx->control == value)
-                       break;
+                       return i;
        }
-       if (i > pr->throttling.state_count)
-               i = -1;
-       return i;
+       return -1;
 }
 
 static int acpi_get_throttling_value(struct acpi_processor *pr,