aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-imx8mp.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-10-29 22:40:07 +0000
committerShawn Guo <shawnguo@kernel.org>2020-11-01 17:26:43 +0800
commitf2644bd7413c8f2fcef208c576e83335709c5120 (patch)
tree14f5200c042c8ae7ec69c7987864d598df0300b6 /drivers/clk/imx/clk-imx8mp.c
parentclk: imx: remove unneeded semicolon (diff)
downloadlinux-dev-f2644bd7413c8f2fcef208c576e83335709c5120.tar.xz
linux-dev-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/clk-imx8mp.c')
-rw-r--r--drivers/clk/imx/clk-imx8mp.c2
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;