Skip to content

Commit d36cb84

Browse files
tititiou36vireshk
authored andcommitted
OPP: Fix an un-initialized variable usage
smatch complains that 'ret' may be returned un-initialized. Explicitly return 0 if we reach the end of the function (should 'opp_table->clk_count' be 0). Fixes: 8174a3a ("OPP: Provide a simple implementation to configure multiple clocks") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 568035b commit d36cb84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/opp/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ int dev_pm_opp_config_clks_simple(struct device *dev,
873873
}
874874
}
875875

876-
return ret;
876+
return 0;
877877
}
878878
EXPORT_SYMBOL_GPL(dev_pm_opp_config_clks_simple);
879879

0 commit comments

Comments
 (0)