clk: Correct the data types of the variables in clk_calc_new_rates

In clk_calc_new_rates, the "ret" is only used to store the return value
of clk_core_determine_round_nolock, and the data type of the return
value of clk_core_determine_round_nolock is int.

Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
Link: https://lore.kernel.org/r/20250207-correct_data_types-v1-1-f22bc7ea220d@amlogic.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Chuan Liu 2025-02-07 17:36:10 +08:00 committed by Stephen Boyd
parent e995f4d516
commit a1123951b2

View File

@ -2283,7 +2283,7 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
unsigned long min_rate;
unsigned long max_rate;
int p_index = 0;
long ret;
int ret;
/* sanity */
if (IS_ERR_OR_NULL(core))