Skip to content

Commit d66e4c9

Browse files
Colin Ian Kingbebarino
authored andcommitted
clk: stm32mp1: remove redundant assignment to pointer data
The pointer data is being initialized with a value and a few lines later on being re-assigned the same value, so this re-assignment is redundant. Clean up the code and remove it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20211126221239.1100960-1-colin.i.king@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 978fbc7 commit d66e4c9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/clk/clk-stm32mp1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,8 +2253,6 @@ static int stm32_rcc_reset_init(struct device *dev, void __iomem *base,
22532253
const struct stm32_rcc_match_data *data = match->data;
22542254
struct stm32_reset_data *reset_data = NULL;
22552255

2256-
data = match->data;
2257-
22582256
reset_data = kzalloc(sizeof(*reset_data), GFP_KERNEL);
22592257
if (!reset_data)
22602258
return -ENOMEM;

0 commit comments

Comments
 (0)