diff options
author | 2022-08-15 14:44:37 +0200 | |
---|---|---|
committer | 2022-08-16 10:48:08 +0530 | |
commit | d36cb843e456324d6e725f1d8b440c4645a52d0d (patch) | |
tree | b7e37aa14a635263cc3129b108f7e7c5e151d6b7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Linux 6.0-rc1 (diff) | |
download | wireguard-linux-d36cb843e456324d6e725f1d8b440c4645a52d0d.tar.xz wireguard-linux-d36cb843e456324d6e725f1d8b440c4645a52d0d.zip |
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: 8174a3a613af ("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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions