From: akpm@linux-foundation.org Subject: [patch 3/7] acpi: remove duplicated warning message Date: Mon, 04 Feb 2008 23:31:19 -0800 Message-ID: <200802050731.m157V0rH009618@imap1.linux-foundation.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:34579 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753323AbYBEHbp (ORCPT ); Tue, 5 Feb 2008 02:31:45 -0500 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, akpm@linux-foundation.org, mboton@gmail.com =46rom: Miguel Bot=C3=B3n Remove duplicated warning message in acpi_power_transition() This warning message is printed by acpi_bus_set_power() so we don't need to print it again. Signed-off-by: Miguel Bot=C3=B3n Cc: Len Brown Signed-off-by: Andrew Morton --- drivers/acpi/power.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff -puN drivers/acpi/power.c~acpi-remove-duplicated-warning-message d= rivers/acpi/power.c --- a/drivers/acpi/power.c~acpi-remove-duplicated-warning-message +++ a/drivers/acpi/power.c @@ -458,11 +458,9 @@ int acpi_power_transition(struct acpi_de } =20 end: - if (result) { + if (result) device->power.state =3D 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 =3D state; } _ - To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html