* [PATCH] acpi: remove duplicated warning message
@ 2007-12-01 15:42 ` Miguel Botón
0 siblings, 0 replies; 2+ messages in thread
From: Miguel Botón @ 2007-12-01 15:42 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: ACPI Devel Maling List, Len Brown
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ón <mboton@gmail.com>
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index af1769a..b4af974 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;
}
--
Miguel Botón
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] acpi: remove duplicated warning message
@ 2007-12-01 15:42 ` Miguel Botón
0 siblings, 0 replies; 2+ messages in thread
From: Miguel Botón @ 2007-12-01 15:42 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: ACPI Devel Maling List, Len Brown
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ón <mboton@gmail.com>
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index af1769a..b4af974 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;
}
--
Miguel Botón
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-01 15:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-01 15:42 [PATCH] acpi: remove duplicated warning message Miguel Botón
2007-12-01 15:42 ` Miguel Botón
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.