projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978fbc7
)
clk: stm32mp1: remove redundant assignment to pointer data
author
Colin Ian King
<colin.i.king@googlemail.com>
Fri, 26 Nov 2021 22:12:39 +0000
(22:12 +0000)
committer
Stephen Boyd
<sboyd@kernel.org>
Thu, 16 Dec 2021 06:48:28 +0000
(22:48 -0800)
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>
drivers/clk/clk-stm32mp1.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-stm32mp1.c
b/drivers/clk/clk-stm32mp1.c
index 4bd1fe7d8af4a4ee06b7548d6dd18320c7ed83e3..863274aa50e388db3bbc2f0a45f1b5a5b5f9ec36 100644
(file)
--- 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;