diff options
Diffstat (limited to 'kernel/power/qos.c')
-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 2c0a65e27626..56db75147186 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -387,8 +387,7 @@ static int pm_qos_power_open(struct inode *inode, struct file *filp) pm_qos_add_request(req, pm_qos_class, PM_QOS_DEFAULT_VALUE); filp->private_data = req; - if (filp->private_data) - return 0; + return 0; } return -EPERM; } |