mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00
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>
This commit is contained in:
parent
e995f4d516
commit
a1123951b2
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user