Skip to content

Commit

Permalink
ACPI: processor: idle: Drop unnecessary statements and parens
Browse files Browse the repository at this point in the history
Drop a redundant "else", a "return" statement at the end of a void
function and redundant parentheses around an unsigent int variable
name from the ACPI processor idle driver.

No expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Dec 7, 2022
1 parent 05e6b43 commit b697b81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
* the erratum), but this is known to disrupt certain ISA
* devices thus we take the conservative approach.
*/
else if (errata.piix4.fdma) {
if (errata.piix4.fdma) {
acpi_handle_debug(pr->handle,
"C3 not supported on PIIX4 with Type-F DMA\n");
return;
Expand Down Expand Up @@ -384,8 +384,6 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
* handle BM_RLD is to set it and leave it set.
*/
acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, 1);

return;
}

static int acpi_cst_latency_cmp(const void *a, const void *b)
Expand Down Expand Up @@ -459,7 +457,7 @@ static int acpi_processor_power_verify(struct acpi_processor *pr)

lapic_timer_propagate_broadcast(pr);

return (working);
return working;
}

static int acpi_processor_get_cstate_info(struct acpi_processor *pr)
Expand Down

0 comments on commit b697b81

Please sign in to comment.