diff options
-rw-r--r-- | kernel/power/qos.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 1c1797dd1d1d..5167d996cd02 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c | |||
@@ -386,8 +386,7 @@ static int pm_qos_power_open(struct inode *inode, struct file *filp) | |||
386 | pm_qos_add_request(req, pm_qos_class, PM_QOS_DEFAULT_VALUE); | 386 | pm_qos_add_request(req, pm_qos_class, PM_QOS_DEFAULT_VALUE); |
387 | filp->private_data = req; | 387 | filp->private_data = req; |
388 | 388 | ||
389 | if (filp->private_data) | 389 | return 0; |
390 | return 0; | ||
391 | } | 390 | } |
392 | return -EPERM; | 391 | return -EPERM; |
393 | } | 392 | } |