projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96d69d
)
PM / QoS: Remove redundant check
author
Guennadi Liakhovetski
<g.liakhovetski@gmx.de>
Thu, 3 Nov 2011 09:12:36 +0000
(10:12 +0100)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Fri, 4 Nov 2011 21:28:14 +0000
(22:28 +0100)
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>
kernel/power/qos.c
patch
|
blob
|
history
diff --git
a/kernel/power/qos.c
b/kernel/power/qos.c
index 1c1797dd1d1d3f05c3260f47e0f6c22efc1c815c..5167d996cd02309cad2b85b5fc12b95df554acb7 100644
(file)
--- 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;
}