Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4494427ybv; Tue, 25 Feb 2020 21:30:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzOiqhkJYRz2JZ1cpPtXhYhpL3nu7AErE5NrAzOOInXmCad/SSUXT5g+ZzDLGn/5X+DjeW2 X-Received: by 2002:a05:6808:358:: with SMTP id j24mr1833686oie.89.1582695020574; Tue, 25 Feb 2020 21:30:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582695020; cv=none; d=google.com; s=arc-20160816; b=MXiQapMvJVJE1rN9fxA88i/G+F1BaTqyPZAs9VUj3I6+BdgFclN1b7yu8mjG/QTKdw E55NdraRl+WVEPDm62vycyHl/koEqZ70q2rNlyxXUx55hAxYUSRDGZ+HPvLu91fK6ugd WeHC2c3BRStYYipE8xfePqNEIaJ/ihij7+R00ejoR/35pIHK6Cig7VbfA+N7qhQPu5HL tyVSAY592846pU5eI7ivr9yLlj8eeJLr6nFyPiKPxHHGoo+JrfOWszWx8bsMuQsPx8n7 zeuYqzsl1k3vfs/UWkwv3J9caqytLSl8/zJNgXLL+gHCmNsuOguw0rPO1RFivXFIHkLD j7wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MgzApSWdsJbIokKfO1tbYw+VgTkJFLI30Z6bFCWm58A=; b=vKk4weN8fMM4fdD6dpPeqCbEYIQRRbozcD17F0+0W9XgcC3x29c8aHZMsaJpTlWkTY wFX/MjidebmlOsc/eNxQdstHNJzzyDMIGGJptmIMMw8tX1X0a9SOB6aqFWlLz6qfQ/kV icaSrcyxW/Zi71jrZjrE5QdvUCs7grhIGqmIBE0RTiIpH/fTebOCUW1PllEcUPNhMXN1 16Y1TfQ7mqOnZIgF+apnPDKmlM1vgeww49tskElBqjQ0o6mvjJtlrPEeKzIHcMx0EIAB YMgEmsOcsWK8Qon9pH/m6dVNiZwgpACz4tHlH1u1yWlDnLz2F8o6vyXooq1D0msGYaZ3 IXSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b141si646125oii.79.2020.02.25.21.30.08; Tue, 25 Feb 2020 21:30:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgBZF2F (ORCPT + 99 others); Wed, 26 Feb 2020 00:28:05 -0500 Received: from inva020.nxp.com ([92.121.34.13]:42968 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgBZF2F (ORCPT ); Wed, 26 Feb 2020 00:28:05 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9E1831A695C; Wed, 26 Feb 2020 06:28:03 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 40B271A693C; Wed, 26 Feb 2020 06:27:59 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A32CB402AD; Wed, 26 Feb 2020 13:27:53 +0800 (SGT) From: Anson Huang To: srinivas.kandagatla@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] nvmem: imx-ocotp: Drop unnecessary initializations Date: Wed, 26 Feb 2020 13:22:13 +0800 Message-Id: <1582694533-18870-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop unnecessary initialization of variable 'clk_rate' and 'timing'. Signed-off-by: Anson Huang --- drivers/nvmem/imx-ocotp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 4ba9cc8..5b6a0c9 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -193,9 +193,9 @@ static int imx_ocotp_read(void *context, unsigned int offset, static void imx_ocotp_set_imx6_timing(struct ocotp_priv *priv) { - unsigned long clk_rate = 0; + unsigned long clk_rate; unsigned long strobe_read, relax, strobe_prog; - u32 timing = 0; + u32 timing; /* 47.3.1.3.1 * Program HW_OCOTP_TIMING[STROBE_PROG] and HW_OCOTP_TIMING[RELAX] @@ -245,9 +245,9 @@ static void imx_ocotp_set_imx6_timing(struct ocotp_priv *priv) static void imx_ocotp_set_imx7_timing(struct ocotp_priv *priv) { - unsigned long clk_rate = 0; + unsigned long clk_rate; u64 fsource, strobe_prog; - u32 timing = 0; + u32 timing; /* i.MX 7Solo Applications Processor Reference Manual, Rev. 0.1 * 6.4.3.3 -- 2.7.4