From: Chuan Liu Date: Fri, 7 Feb 2025 09:36:10 +0000 (+0800) Subject: clk: Correct the data types of the variables in clk_calc_new_rates X-Git-Tag: v6.15-rc1~103^2~2^4~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a1123951b24759188010a6aa3d9d0be7b996bd39;p=linux.git 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 Link: https://lore.kernel.org/r/20250207-correct_data_types-v1-1-f22bc7ea220d@amlogic.com Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index cf7720b9172f..00c1a89a852a 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -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))