diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-10-29 23:40:07 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-11-01 10:26:43 +0100 |
commit | f2644bd7413c8f2fcef208c576e83335709c5120 (patch) | |
tree | 14f5200c042c8ae7ec69c7987864d598df0300b6 /drivers/clk/imx | |
parent | clk: imx: remove unneeded semicolon (diff) | |
download | linux-f2644bd7413c8f2fcef208c576e83335709c5120.tar.xz linux-f2644bd7413c8f2fcef208c576e83335709c5120.zip |
clk: imx: remove redundant assignment to pointer np
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>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r-- | drivers/clk/imx/clk-imx8mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 12ce4770f702..3cb2bc46eae0 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -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; |