]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: meson: Remove unreachable code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 23 Jul 2025 16:37:24 +0000 (17:37 +0100)
committerNeil 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

index 5d7faaa3eabf98ca550ee371104c32b85c4396a5..a7a42b2edb6a5b98612fb71fec6d17b1f3ab77c8 100644 (file)
@@ -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,