]> www.infradead.org Git - linux.git/commitdiff
clk: Correct the data types of the variables in clk_calc_new_rates
authorChuan Liu <chuan.liu@amlogic.com>
Fri, 7 Feb 2025 09:36:10 +0000 (17:36 +0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Mar 2025 20:59:06 +0000 (12:59 -0800)
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>
drivers/clk/clk.c

index cf7720b9172ff223d86227aad144e15375ddfd86..00c1a89a852aa9e2629505027aae74fa6b19c781 100644 (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))