Message ID | 20250207-correct_data_types-v1-1-f22bc7ea220d@amlogic.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | clk: Correct the data types of the variables in clk_calc_new_rates | expand |
Quoting Chuan Liu via B4 Relay (2025-02-07 01:36:10) > From: Chuan Liu <chuan.liu@amlogic.com> > > 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> > --- Applied to clk-next
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9b45fa005030..e153d1901a60 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))