Skip to content

Commit a112395

Browse files
Chuan Liubebarino
authored andcommitted
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>
1 parent e995f4d commit a112395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
22832283
unsigned long min_rate;
22842284
unsigned long max_rate;
22852285
int p_index = 0;
2286-
long ret;
2286+
int ret;
22872287

22882288
/* sanity */
22892289
if (IS_ERR_OR_NULL(core))

0 commit comments

Comments
 (0)