clk: renesas: rcar-gen3: Remove superfluous masking in cpg_z_clk_set_rate()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 26 Mar 2021 12:00:56 +0000 (13:00 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 May 2021 07:57:06 +0000 (09:57 +0200)
commitc141897caafb4754b6ef862a67c87b8feed4d921
tree5c1096dfcf3b11476d9f1bb395df92402af25e5b
parent58effcd350c81735154313aa49b1c0801fdb04a2
clk: renesas: rcar-gen3: Remove superfluous masking in cpg_z_clk_set_rate()

Due to the clamping of mult, "(32 - mult) << __ffs(zclk->mask)" can
never exceed the mask.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210326120100.1577596-4-geert+renesas@glider.be
drivers/clk/renesas/rcar-gen3-cpg.c