Skip to content
Commit d36cb843 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Viresh Kumar
Browse files

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: 8174a3a6 ("OPP: Provide a simple implementation to configure multiple clocks")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 568035b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment