projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568035b
)
OPP: Fix an un-initialized variable usage
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Mon, 15 Aug 2022 12:44:37 +0000
(14:44 +0200)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Tue, 16 Aug 2022 05:18:08 +0000
(10:48 +0530)
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>
drivers/opp/core.c
patch
|
blob
|
history
diff --git
a/drivers/opp/core.c
b/drivers/opp/core.c
index 77d1ba3a4154f93ca7a1fe46de791d9e54dd0cce..e87567dbe99f27d09c9de29fc40e9e1108f4a5da 100644
(file)
--- a/
drivers/opp/core.c
+++ b/
drivers/opp/core.c
@@
-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);