Re: [PATCH] Device runtime suspend/resume fixes try #2

From: Patrick Mochel
Date: Fri May 28 2004 - 12:21:15 EST



> --- linux-2.6.6-orig/drivers/base/power/runtime.c 2004-05-10 11:22:58.000000000 -0700
> +++ linux-2.6.6-pm/drivers/base/power/runtime.c 2004-05-26 10:37:05.193449240 -0700
> @@ -14,7 +14,10 @@
> {
> if (!dev->power.power_state)
> return;
> - resume_device(dev);
> + if (! resume_device(dev))
> + dev->power.power_state = 0;
> +
> + return;

You don't need to explicitly return from a void function. :)


Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/