From patchwork Thu Mar 3 09:05:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 12767241 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 512F6C433FE for ; Thu, 3 Mar 2022 09:06:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5vU5CpkBivRwBhxEJdV8gROlzIBBjfX0qhJ/krAa9cM=; b=KOPXkkuhTr6vXG X7xKGZoKjbzutN8UJMiqG09cID/FQr/GnaBwlcOrCbUSQwkEgFw4m5X9YCId70GBhRXe9cAZyrUGa Svz84XfgNiJTER+r5mdTuD1RXRV4FNYdIyej/kDa29KNPuVMMK6XlAdEQbb2ZisP9H033GGb3T6jt L9wsbg+K6TzODwasE4CG8eie9Don6SgJZ4V9CEYsrfC2eDkr5tNizIFWZd+5GKs5Bbhb786e2Y/QA ogT8OKEnM+GWFSN4na7cCd1NY5jR7LQftgTl3Wse5Azx2Hg+KdJX/E6ibO09zpTJJaH9FPOo8XcCf lu8Y7If64LNoMapnl27w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPhOd-005peg-DT; Thu, 03 Mar 2022 09:05:15 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPhOZ-005peD-SC for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 09:05:13 +0000 Received: by mail-wm1-x336.google.com with SMTP id v2-20020a7bcb42000000b0037b9d960079so4922073wmj.0 for ; Thu, 03 Mar 2022 01:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+FOBCOKBUOKBrO8yhdXy1yyP31Rv+CE5Az+FJgpuSOw=; b=bV0quv7CQHqRsqMuMnYki4NDf3gyminsa8fgh1Tkc09abQfrsbuKCSyIiNQsR89d3M kj+RSpp585GVLCBfQZ3ZUb7yAUCpOu/yN7XukhV+udVL/9xkrC2ifWDnMgH5aunLxQTv Zi6PGwfDUpWv7DW3l6wEV7x7EgcEk/5Rohqs54CouPvTTS78X4SMsbKnRzfnezg4kr4k WWw3+EeOD1QM3tpg0qnkgvHB8rWJrMwRdXG6XyDwzPSwKDOwjxWyBNZVyYTZGShIPIVv 0hwKaTajT54NLnq6rHttPXXvBjRUKGGVgmaSg1AfIltw0xSOlJQEQr3UiLFI5QE6ygDR 1UTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+FOBCOKBUOKBrO8yhdXy1yyP31Rv+CE5Az+FJgpuSOw=; b=POawB6ZcoRP3MF30EcxWIE9vw9Kvt5d4VE0ssTkuUd0ZunCr+aZOvcjK+o/6xoOfBE 2fj+7ISIaDHsl3bByH9grS6AE3bylIMmU3Uw7SG6OBABYZT/+sbrD29iX1dQtG2vZf6K O5ac0PIdI/92C36rQmPqY0Rp28CpOdaEZCv6rD2QXNHXbJQdJuZTAwfcQw2OOodOtsEy 2JT7kpI7iwxesDAZTjl8L4Fmov9cLo/hFgHSMywAZu/0Ics4uamnQGBiDWyho0z0EmIN FYVoIxXg1sEvup150Ym7wjd98FYgWvIok831h3h8Fz/Zj68rfgVbGvyzBsPMTpUWFakP lGyg== X-Gm-Message-State: AOAM531H81yR7ONa67HNnyAe2hxyi46OE9KyOb1qkNy1de8EPco4ufqW BjeyEODak0XbUSbzH/6RokQ= X-Google-Smtp-Source: ABdhPJwQfGl2taTo7TZ21DRaALXumXvZYaUbZJ65zGR4LRTDVWP64sLQJSK2ZUxRUaKTbvBt3qe0jw== X-Received: by 2002:a1c:1907:0:b0:380:f6ec:4daa with SMTP id 7-20020a1c1907000000b00380f6ec4daamr3088912wmz.50.1646298309192; Thu, 03 Mar 2022 01:05:09 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id e20-20020adfa454000000b001f01a14dce8sm1357768wra.97.2022.03.03.01.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 01:05:08 -0800 (PST) From: Colin Ian King To: Abel Vesa , 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 re-assignment of pll->base Date: Thu, 3 Mar 2022 09:05:08 +0000 Message-Id: <20220303090508.1125175-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_010511_938904_9CDACF3C X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are two identical assignments of pll->base to the same value, the second assignment is redundant and can be removed. Cleans up cppcheck warning: drivers/clk/imx/clk-sscg-pll.c:528:12: style: Variable 'pll->base' is reassigned a value before the old one has been used. [redundantAssignment] Signed-off-by: Colin Ian King --- drivers/clk/imx/clk-sscg-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/imx/clk-sscg-pll.c b/drivers/clk/imx/clk-sscg-pll.c index 9d6cdff0537f..81f304fae908 100644 --- a/drivers/clk/imx/clk-sscg-pll.c +++ b/drivers/clk/imx/clk-sscg-pll.c @@ -525,7 +525,6 @@ struct clk_hw *imx_clk_hw_sscg_pll(const char *name, init.parent_names = parent_names; init.num_parents = num_parents; - pll->base = base; pll->hw.init = &init; hw = &pll->hw;