git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b332723
)
clk: meson: Remove unreachable code
author
Andrew Goodbody
<andrew.goodbody@linaro.org>
Wed, 23 Jul 2025 16:37:24 +0000
(17:37 +0100)
committer
Neil Armstrong
<neil.armstrong@linaro.org>
Tue, 30 Sep 2025 18:32:15 +0000
(20:32 +0200)
A second return following the first return is unreachable code so remove
it.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link:
https://lore.kernel.org/r/20250723-clk_meson-v1-1-8cd6e73145a4@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/clk/meson/g12a.c
patch
|
blob
|
history
diff --git
a/drivers/clk/meson/g12a.c
b/drivers/clk/meson/g12a.c
index
5d7faaa
..
a7a42b2
100644
(file)
--- a/
drivers/clk/meson/g12a.c
+++ b/
drivers/clk/meson/g12a.c
@@
-916,8
+916,6
@@
static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
return -EINVAL;
case CLKID_PCIE_PLL:
return meson_pcie_pll_set_rate(clk, rate);
-
- return 0;
case CLKID_VPU:
return meson_clk_set_rate_by_id(clk,
meson_mux_get_parent(clk, CLKID_VPU), rate,