hwrng: stm32 - reuse clock rate in stm32_rng_clock_freq_restrain()

Reuse clock_rate and avoid calling clk_get_rate() again. Remove the
extra space before the colon while at it.

Signed-off-by: Thorsten Blum <blum@kernel.org>
acked-by: Maxime Méré <maxime.mere@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Thorsten Blum 2026-10-01 23:16:10 +02:00 committed by Herbert Xu
parent 3d68bdcf0d
commit 70f49f55a1

View File

@ -277,7 +277,7 @@ static uint stm32_rng_clock_freq_restrain(struct hwrng *rng)
while ((clock_rate >> clock_div) > priv->data->max_clock_rate)
clock_div++;
pr_debug("RNG clk rate : %lu\n", clk_get_rate(priv->clk_bulk[0].clk) >> clock_div);
pr_debug("RNG clk rate: %lu\n", clock_rate >> clock_div);
return clock_div;
}