Skip to content

Commit d036466

Browse files
Colin Ian Kingbebarino
authored andcommitted
clk: intel: remove redundant initialization of variable rate64
The variable rate64 is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent d058fd9 commit d036466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/x86/clk-cgu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ lgm_clk_ddiv_round_rate(struct clk_hw *hw, unsigned long rate,
538538
struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw);
539539
u32 div, ddiv1, ddiv2;
540540
unsigned long flags;
541-
u64 rate64 = rate;
541+
u64 rate64;
542542

543543
div = DIV_ROUND_CLOSEST_ULL((u64)*prate, rate);
544544

0 commit comments

Comments
 (0)