mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
clk: meson: remove duplicate logic
First thing we check in meson_clk_set_rate_by_id() is current_rate == rate. There is not need to check it again. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
b160fac9f7
commit
0c0cdc8610
1 changed files with 1 additions and 4 deletions
|
@ -823,10 +823,7 @@ static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
|
|||
case CLKID_MPLL1:
|
||||
case CLKID_MPLL2:
|
||||
case CLKID_CLK81:
|
||||
if (current_rate != rate)
|
||||
return -EINVAL;
|
||||
|
||||
return 0;
|
||||
return -EINVAL;
|
||||
case CLKID_VPU:
|
||||
return meson_clk_set_rate_by_id(clk,
|
||||
meson_mux_get_parent(clk, CLKID_VPU), rate,
|
||||
|
|
Loading…
Reference in a new issue