Skip to content

Commit d71e1f5

Browse files
ColinIanKingbebarino
authored andcommitted
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] Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 44042fb commit d71e1f5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/clk/clk-cdce925.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ static void cdce925_pll_find_rate(unsigned long rate,
101101

102102
if (rate <= parent_rate) {
103103
/* Can always deliver parent_rate in bypass mode */
104-
rate = parent_rate;
105104
*n = 0;
106105
*m = 0;
107106
} else {

0 commit comments

Comments
 (0)