Skip to contentSkip to conversation

clk: cdce925: Remove redundant assignment to variable 'rate'

PATCH Applied Colin Ian King 2 participants 2 messages Feb 16, 2024 – Feb 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: cdce925: Remove redundant assignment to variable 'rate'

The variable 'rate' being assigned a value that is never read, the assignment is redundant and can be removed.

Cleans up clang scan build warning:
drivers/clk/clk-cdce925.c:104:3: warning: Value stored to 'rate' is never read [deadcode.DeadStores]

---
 drivers/clk/clk-cdce925.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clk/clk-cdce925.c +0 -1
index b0122093c6ff..e48be7a6c0e2 100644
@@ -101,7 +101,6 @@ static void cdce925_pll_find_rate(unsigned long rate,
 
 	if (rate <= parent_rate) {
 		/* Can always deliver parent_rate in bypass mode */
-		rate = parent_rate;
 		*n = 0;
 		*m = 0;
 	} else {
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw

Quoting Colin Ian King (2024-02-16 06:01:32)

Quoted 9 lines

The variable 'rate' being assigned a value that is never read, the assignment is redundant and can be removed.

Cleans up clang scan build warning:
drivers/clk/clk-cdce925.c:104:3: warning: Value stored to 'rate' is never read [deadcode.DeadStores]

---

Applied to clk-next