Commit a1123951 authored by Chuan Liu's avatar Chuan Liu Committed by Stephen Boyd
Browse files

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: default avatarChuan Liu <chuan.liu@amlogic.com>
Link: https://lore.kernel.org/r/20250207-correct_data_types-v1-1-f22bc7ea220d@amlogic.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent e995f4d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))