diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-11-03 05:12:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-11-04 17:28:14 -0400 |
commit | 6513fd6972f725291ee8ce62c7a39fb8a6c7391e (patch) | |
tree | d5fd2722e3f1299f3b71b917fa1287e302f2df76 /kernel/power | |
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')
-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 | } |