clk: imx: remove redundant assignment to pointer np
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Oct 2020 22:40:07 +0000 (22:40 +0000)
committerShawn Guo <shawnguo@kernel.org>
Sun, 1 Nov 2020 09:26:43 +0000 (17:26 +0800)
Pointer np is being initialized with a value that is never read
and it is being updated with a value later on. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mp.c

index 12ce477..3cb2bc4 100644 (file)
@@ -425,7 +425,7 @@ static struct clk **uart_clks[ARRAY_SIZE(uart_clk_ids) + 1];
 static int imx8mp_clocks_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
-       struct device_node *np = dev->of_node;
+       struct device_node *np;
        void __iomem *anatop_base, *ccm_base;
        int i;