diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-11-03 10:12:36 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-11-04 22:28:14 +0100 |
commit | 6513fd6972f725291ee8ce62c7a39fb8a6c7391e (patch) | |
tree | d5fd2722e3f1299f3b71b917fa1287e302f2df76 /kernel/power/qos.c | |
parent | a96d69d1b02c4a526bd8c07e0cb10c129025c88c (diff) |
PM / QoS: Remove redundant check
Remove an "if" check, that repeats an equivalent one 6 lines above.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
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 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) 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; } |