Commit d66e4c98 authored by Colin Ian King's avatar Colin Ian King Committed by Stephen Boyd
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211126221239.1100960-1-colin.i.king@gmail.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 978fbc7a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2253,8 +2253,6 @@ static int stm32_rcc_reset_init(struct device *dev, void __iomem *base,
	const struct stm32_rcc_match_data *data = match->data;
	struct stm32_reset_data *reset_data = NULL;

	data = match->data;

	reset_data = kzalloc(sizeof(*reset_data), GFP_KERNEL);
	if (!reset_data)
		return -ENOMEM;