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 <elfring@users.sourceforge.net> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/6604590e-d0f7-4798-a1b9-b2f474f3a642@web.de Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
1 parent fed6bf5 commit e1ed0b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)