提交 c6a57bff 编写于 作者: L Luis Gonzalez Fernandez 提交者: Rafael J. Wysocki

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: NLuis Gonzalez Fernandez <luisgf@gmail.com>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 4cbe5a55
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册