summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-stm32mp1.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@googlemail.com>2021-11-26 22:12:39 +0000
committerStephen Boyd <sboyd@kernel.org>2021-12-15 22:48:28 -0800
commitd66e4c985dd48c69dc70b8be1dabeaa3d77789fb (patch)
tree60621617983bc80f7cf5d9206a708c21647ce970 /drivers/clk/clk-stm32mp1.c
parent978fbc7a05993df9a2fd115e8fd78600c72e0dfe (diff)
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>
Diffstat (limited to 'drivers/clk/clk-stm32mp1.c')
-rw-r--r--drivers/clk/clk-stm32mp1.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c
index 4bd1fe7d8af4..863274aa50e3 100644
--- a/drivers/clk/clk-stm32mp1.c
+++ b/drivers/clk/clk-stm32mp1.c
@@ -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;