]> Git Repo - linux.git/commitdiff
clk: imx: composite-8m: Delete two unnecessary initialisations in __imx8m_clk_hw_comp...
authorMarkus Elfring <[email protected]>
Fri, 22 Dec 2023 16:11:03 +0000 (17:11 +0100)
committerAbel Vesa <[email protected]>
Mon, 26 Feb 2024 08:58:42 +0000 (10:58 +0200)
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]>
drivers/clk/imx/clk-composite-8m.c

index eb5392f7a2574955c87b602923a3c46d8b2b960d..8cc07d056a83849fec36eb20504e188fa992aee3 100644 (file)
@@ -212,9 +212,9 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name,
 {
        struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw;
        struct clk_hw *div_hw, *gate_hw = NULL;
-       struct clk_divider *div = NULL;
+       struct clk_divider *div;
        struct clk_gate *gate = NULL;
-       struct clk_mux *mux = NULL;
+       struct clk_mux *mux;
        const struct clk_ops *divider_ops;
        const struct clk_ops *mux_ops;
 
This page took 0.061371 seconds and 4 git commands to generate.