提交 6a89e012 编写于 作者: D Dan Carpenter 提交者: Viresh Kumar

PM / OPP: silence an uninitialized variable warning

Smatch complains that it's possible we print "rate" in the debug output
when it hasn't been initialized.  It should be zero on that path.

Fixes: a1e8c136 ("PM / OPP: "opp-hz" is optional for power domains")
[ Viresh: Added the Fixes tag ]
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
上级 28fa4aca
...@@ -287,7 +287,7 @@ static int _opp_add_static_v2(struct opp_table *opp_table, struct device *dev, ...@@ -287,7 +287,7 @@ static int _opp_add_static_v2(struct opp_table *opp_table, struct device *dev,
struct device_node *np) struct device_node *np)
{ {
struct dev_pm_opp *new_opp; struct dev_pm_opp *new_opp;
u64 rate; u64 rate = 0;
u32 val; u32 val;
int ret; int ret;
bool rate_not_available = false; bool rate_not_available = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册