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:
4cbe5a5
)
PM / QoS: Add return code to pm_qos_get_value function.
author
Luis Gonzalez Fernandez
<
[email protected]
>
Fri, 7 Sep 2012 19:35:21 +0000
(21:35 +0200)
committer
Rafael J. Wysocki
<
[email protected]
>
Fri, 7 Sep 2012 19:35:21 +0000
(21:35 +0200)
pm_qos_get_value don't return a return code in all cases. It's sure that
anything interesting happend after BUG() but this prevent any compilation
warning.
[rjw: Chaneged the new return value to PM_QOS_DEFAULT_VALUE.]
Signed-off-by: Luis Gonzalez Fernandez <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
kernel/power/qos.c
patch
|
blob
|
history
diff --git
a/kernel/power/qos.c
b/kernel/power/qos.c
index 6a031e684026f99507946c371544cbae34a35b48..846bd42c7ed179673846817da8bb2e69078ce673 100644
(file)
--- a/
kernel/power/qos.c
+++ b/
kernel/power/qos.c
@@
-139,6
+139,7
@@
static inline int pm_qos_get_value(struct pm_qos_constraints *c)
default:
/* runtime check for not using enum */
BUG();
+ return PM_QOS_DEFAULT_VALUE;
}
}