Skip to contentSkip to conversation

acpi: remove duplicated warning message

PATCH New Miguel Botón 1 participant 1 message Dec 1, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: remove duplicated warning message

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.

drivers/acpi/power.c +2 -4
index af1769a..b4af974 100644
@@ -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;
 	}
Signature · 6 lines
	Miguel Botón
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/