Skip to content

Commit 732b1c2

Browse files
ColinIanKingbebarino
authored andcommitted
clk: clocking-wizard: Remove redundant initialization of pointer div_addr
The pointer div_addr is being assigned a value that is never used, it is being re-assigned a different value near the end of the function where it is being read in the next statement. The initialization is redundant and can be removed. Cleans up clang scan build warning: drivers/clk/xilinx/clk-xlnx-clock-wizard.c:501:16: warning: Value stored to 'div_addr' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Michal Simek <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 05dbb50 commit 732b1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/xilinx/clk-xlnx-clock-wizard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static int clk_wzrd_dynamic_all_nolock(struct clk_hw *hw, unsigned long rate,
498498
{
499499
struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
500500
unsigned long vco_freq, rate_div, clockout0_div;
501-
void __iomem *div_addr = divider->base;
501+
void __iomem *div_addr;
502502
u32 reg, pre, f;
503503
int err;
504504

0 commit comments

Comments
 (0)