Skip to contentSkip to conversation

clk: Correct the data types of the variables in clk_calc_new_rates

PATCH Applied Chuan Liu 2 participants 2 messages Feb 7, 2025 – Mar 4, 2025 Common clk

lore
Share & tools
lore

Chuan Liu

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk.c +1 -1
index 9b45fa005030..e153d1901a60 100644
@@ -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))

---
base-commit: 1e1fd26ed4ca05cc1f0e5857918da4dd54967f7d
change-id: 20250207-correct_data_types-fadaeaa46b07

Best regards,

Signature · 1 line
Chuan Liu <[email protected]>
maintainer Applied
#1 lore raw

Quoting Chuan Liu via B4 Relay (2025-02-07 01:36:10)

Quoted 8 lines

From: Chuan Liu <[email protected]>

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.

---

Applied to clk-next