summaryrefslogtreecommitdiffstats
path: root/kernel/power/qos.c
diff options
context:
space:
mode:
authorLuis Gonzalez Fernandez <luisgf@gmail.com>2012-09-07 21:35:21 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-07 21:35:21 +0200
commitc6a57bfffea5b673e5b4f9aeff85a00607e59077 (patch)
treed896e9fcd61dccd27f253c794e2f742c6f59907d /kernel/power/qos.c
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff)
downloadblackbird-op-linux-c6a57bfffea5b673e5b4f9aeff85a00607e59077.tar.gz
blackbird-op-linux-c6a57bfffea5b673e5b4f9aeff85a00607e59077.zip
PM / QoS: Add return code to pm_qos_get_value function.
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 <luisgf@gmail.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power/qos.c')
-rw-r--r--kernel/power/qos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 6a031e684026..846bd42c7ed1 100644
--- 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;
}
}
OpenPOWER on IntegriCloud