Messages in this thread | | | Date | Fri, 28 May 2004 10:18:49 -0700 (PDT) | From | Patrick Mochel <> | Subject | Re: [PATCH] Device runtime suspend/resume fixes try #2 |
| |
> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |