From: Miguel Botón Date: Tue, 5 Feb 2008 07:31:19 +0000 (-0800) Subject: ACPI: remove duplicated warning message X-Git-Tag: v2.6.25-rc1~297^2~3^2~2^2~1^2~1^3~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76d5f7e831a3f33dd6fa8eb94533b0b4cb22b6f;p=linux-2.6 ACPI: remove duplicated warning message 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 Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index af1769a20c..76bf6d90c7 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -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; }