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
+1 −1
Original line number Diff line number Diff line
@@ -873,7 +873,7 @@ int dev_pm_opp_config_clks_simple(struct device *dev,
		}
	}

	return ret;
	return 0;
}
EXPORT_SYMBOL_GPL(dev_pm_opp_config_clks_simple);