]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/base/power/qos.c
Merge branch 'pm-qos'
[~shefty/rdma-dev.git] / drivers / base / power / qos.c
index f03f1ba28c7526cf389179c8db08b9099b5c47b9..ff46387f5308394d913d5789c16265253b56b5f0 100644 (file)
@@ -551,7 +551,7 @@ int dev_pm_qos_add_ancestor_request(struct device *dev,
                error = dev_pm_qos_add_request(ancestor, req,
                                               DEV_PM_QOS_LATENCY, value);
 
-       if (error)
+       if (error < 0)
                req->dev = NULL;
 
        return error;