Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp824961pxx; Thu, 29 Oct 2020 15:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZWtfdZlKKy79AGL1/di+EV0IjUStKEuii7sFaJ0tw5ofZogzVMw9IDzBwI7toCoxyHDhg X-Received: by 2002:a17:906:6805:: with SMTP id k5mr6533728ejr.79.1604011317473; Thu, 29 Oct 2020 15:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604011317; cv=none; d=google.com; s=arc-20160816; b=Rq+SXzdt+GbgNkUZqOo307v+X+abvfV6sMcUsAvpPF807zeH1Iheqp53Q8ep8WyYFT pjAzeATETaFRw8TVQ6Ammv2MFKNsImXzv7aGQXie+fQpFIsZbdBQA/kvHJyKvRHPwRXJ JWRJ0GIc0mJ295EH7ZMb1jypzMdi0H+EqXbKZI+iH0Z++gUdqBvwqkORhHDrmJACpBl8 jhPTaCJbRpQMdqVyYkq8dfNET/yfkJvcFkJXEBoyxPSx2hN4g8jR72a0W9+FYqaedB2m iMX6sfvx8NUSXp6MRIHC+f0AgMa6Ir6Wx2CzuHu2jiWN5wdg2HqIraT8ArgvM56+JNtR nGGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ogyxIUi1rvFx0mA18J0h/dDjLbXYvb1xkASTpYsIBxw=; b=GtU8Yj0hXmQtKpMl2mERMweBm2/S55ZXit1FfEOIaecRuq/Il78JOol9EaF2hNUyhl 285yyPMYgRLp1dj+w0YXhU8uW3OLFtI4kMEk9J+4z/OxvjzUjfPE6u8PRCR86pVo+3v7 W+NxQ1f9dje+D7gi5sUMYR5lXVL1OVBHtbjAnhgApwQAYmxX/0x83rP1XzamqkecmAOP INM9xy6lsVOdiX45JOatq6HwAPdz28mYyWNGo5GkZlxG1hF2k950fwJhk56fJu1LCQwg HxtNxnGhiVajdOfZvO4dZzacyLbqq5MChMaue/nriQs82H8H9Tm/3vhTMNyTHdYIAMpv 8oXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf27si3165810edb.140.2020.10.29.15.41.35; Thu, 29 Oct 2020 15:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725861AbgJ2WkM (ORCPT + 99 others); Thu, 29 Oct 2020 18:40:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44119 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgJ2WkM (ORCPT ); Thu, 29 Oct 2020 18:40:12 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kYGaV-0005la-Kr; Thu, 29 Oct 2020 22:40:07 +0000 From: Colin King To: Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: imx: remove redundant assignment to pointer np Date: Thu, 29 Oct 2020 22:40:07 +0000 Message-Id: <20201029224007.390762-1-colin.king@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King 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 --- drivers/clk/imx/clk-imx8mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.27.0