Skip to content

Commit e1ed0b0

Browse files
elfringabelvesa
authored andcommitted
clk: imx: composite-8m: Delete two unnecessary initialisations in __imx8m_clk_hw_composite()
Two local variables will eventually be set to appropriate pointers a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <[email protected]> Reviewed-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent fed6bf5 commit e1ed0b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/imx/clk-composite-8m.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name,
212212
{
213213
struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw;
214214
struct clk_hw *div_hw, *gate_hw = NULL;
215-
struct clk_divider *div = NULL;
215+
struct clk_divider *div;
216216
struct clk_gate *gate = NULL;
217-
struct clk_mux *mux = NULL;
217+
struct clk_mux *mux;
218218
const struct clk_ops *divider_ops;
219219
const struct clk_ops *mux_ops;
220220

0 commit comments

Comments
 (0)