Skip to content

Commit

Permalink
Merge branch 'pm-qos'
Browse files Browse the repository at this point in the history
* pm-qos:
  PM / QoS: Rename local variable in dev_pm_qos_add_ancestor_request()
  • Loading branch information
Rafael J. Wysocki committed Jan 5, 2013
2 parents f3ea36a + 4ce4780 commit 868b093
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/base/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,19 +542,19 @@ int dev_pm_qos_add_ancestor_request(struct device *dev,
struct dev_pm_qos_request *req, s32 value)
{
struct device *ancestor = dev->parent;
int error = -ENODEV;
int ret = -ENODEV;

while (ancestor && !ancestor->power.ignore_children)
ancestor = ancestor->parent;

if (ancestor)
error = dev_pm_qos_add_request(ancestor, req,
DEV_PM_QOS_LATENCY, value);
ret = dev_pm_qos_add_request(ancestor, req,
DEV_PM_QOS_LATENCY, value);

if (error < 0)
if (ret < 0)
req->dev = NULL;

return error;
return ret;
}
EXPORT_SYMBOL_GPL(dev_pm_qos_add_ancestor_request);

Expand Down

0 comments on commit 868b093

Please sign in to comment.