Skip to content

Commit

Permalink
ACPI: remove duplicated warning message
Browse files Browse the repository at this point in the history
Remove duplicated warning message in acpi_power_transition()

ACPI: Transitioning device [%s] to D%d\n

This warning message is printed by acpi_bus_set_power() so we don't
need to print it again.

Signed-off-by: Miguel Botón <mboton@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Miguel Botón authored and Len Brown committed Feb 7, 2008
1 parent 488b5ec commit e76d5f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/acpi/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,9 @@ int acpi_power_transition(struct acpi_device *device, int state)
}

end:
if (result) {
if (result)
device->power.state = ACPI_STATE_UNKNOWN;
printk(KERN_WARNING PREFIX "Transitioning device [%s] to D%d\n",
device->pnp.bus_id, state);
} else {
else {
/* We shouldn't change the state till all above operations succeed */
device->power.state = state;
}
Expand Down

0 comments on commit e76d5f7

Please sign in to comment.