Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2821004ybi; Sun, 9 Jun 2019 22:09:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqywuZCWCBgX0x/uUNDMlUQAciB1G0W8ZkhaW59orhaDFsW3RNIs68LoZGSzt2NImzkL+ZiE X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr19020300pjr.79.1560143373220; Sun, 09 Jun 2019 22:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560143373; cv=none; d=google.com; s=arc-20160816; b=mt3JdFqgcYFSyOY5L4I/SKLbfsn85ff+K4kLCvpnTNQ/WdcwRDXjytPv3IIyQ25kBl khN8hHKYiGeeIdGFp1rIeupazxuVEb+ZuD9DIj/mhRB8jtayt4M3/sRIwKjEPDGkWEst e/rPtJwRQQoG8oZx9utv+gG3J3xqR2KL7blC1I4SJsUycxD0NIKUYItrwt+F47VdhGoq BT0AcGE6oss7t9E9WMsG51uNlFw/pDMSEQ1VtJQ/lnppIbVHAdazkENZr9x0cAOFPgYs xS0s3q/a3dIv0vKP9FfowqPO5YlvH35rlMrpXaSUWkZcTf4e6FDJ3zN6tDRQATHnpiR3 8Tzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=XYTp22GPT3LhHXj00jg3jwzFkyK0+QPueRkDH3BlZZQ=; b=EVe0yadkUdWthOk4dKGP2b4W5onWuXgGDtQuqjdAStAJdw7sZ/b1uLQEsRV3i/7dKQ NBaneEPgG1U6sCmdlD0ZbG9ka6Ll6zD8saH0rLJf9Npk0U5/g+4+vbTwTDlvoBBSEqul VAewrMgziuu3OsXyYK+VD+Xq5qMzZwqRy4FmNNlD7oC3bKDFKVYgYVBYtPN3No40EBX+ raJtOe2KjXDnnr6P1I+a6QVo3039qf4RQleKqwP1jgZ/QFygppOTyP13ZxtU2IjDUYyX P62COLR03CWyRY5YZ1EMn4SUSHMu+ueL5ZJBLyr/fr4foJZiuSUkB2YS/FGhlmSbBp9D kA2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=PYL9Z0Cn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si8907996pgl.300.2019.06.09.22.09.18; Sun, 09 Jun 2019 22:09:33 -0700 (PDT) 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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=PYL9Z0Cn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387528AbfFJFJD (ORCPT + 99 others); Mon, 10 Jun 2019 01:09:03 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:16345 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbfFJFJC (ORCPT ); Mon, 10 Jun 2019 01:09:02 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 09 Jun 2019 22:09:02 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 09 Jun 2019 22:09:01 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 09 Jun 2019 22:09:01 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 05:09:00 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 05:09:00 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 10 Jun 2019 05:09:00 +0000 Received: from dhcp-10-19-65-14.client.nvidia.com (Not Verified[10.19.65.14]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sun, 09 Jun 2019 22:09:00 -0700 From: Bitan Biswas To: Laxman Dewangan , Thierry Reding , Jonathan Hunter , , , , Peter Rosin , Wolfram Sang , Dmitry Osipenko CC: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik , "Bitan Biswas" Subject: [PATCH V3 2/6] i2c: tegra: remove unnecessary variable init Date: Sun, 9 Jun 2019 22:08:40 -0700 Message-ID: <1560143324-21754-2-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560143324-21754-1-git-send-email-bbiswas@nvidia.com> References: <1560143324-21754-1-git-send-email-bbiswas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560143342; bh=XYTp22GPT3LhHXj00jg3jwzFkyK0+QPueRkDH3BlZZQ=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=PYL9Z0CnFp3/TRmVnV6n0zn+Fg3KEmwSQeo3YcV3kPZUYeDxLmxmivilYBnptHEHg utUUzItg8Hp+iDTnqHBAao4aYPskqtsjKEGc2xIIfIc1oD6JmECNha4jTkehSLNOWI Ly4iC9HUgkdhjeDo3ySjJuGtR1gLKPaq8rcMlZ/F0s6F6EkwHQvFsr0wO8OpR4dNIB wQo/FmgCWjpXZyeEwe2sj9ZhKVDHTvyOnsN25PzwhtR5WSO4v8oIMHidhpSgXJDWu5 hKY3gl+BWbe206vJonx1UWtqXTVEFIxgpQ7ZtEBlpCXOX+Trfwoy39z5vXb5SxDOPC MGq1UPBC1toug== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove variable initializations in functions that are followed by assignments before use Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 00692d8..f7116b7 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -689,7 +689,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev, bool clk_reinit) u32 val; int err; u32 clk_divisor, clk_multiplier; - u32 tsu_thd = 0; + u32 tsu_thd; u8 tlow, thigh; err = pm_runtime_get_sync(i2c_dev->dev); @@ -1218,7 +1218,7 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], { struct tegra_i2c_dev *i2c_dev = i2c_get_adapdata(adap); int i; - int ret = 0; + int ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { @@ -1489,7 +1489,7 @@ static int tegra_i2c_probe(struct platform_device *pdev) void __iomem *base; phys_addr_t base_phys; int irq; - int ret = 0; + int ret; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base_phys = res->start; -- 2.7.4