Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp585286ybi; Fri, 7 Jun 2019 13:08:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj/lHwMkm4Y8I3zckPRF23+//XIaxmbwPDUc9m8PPlYbTkQciqtLH5OW88ASEdagte3nqH X-Received: by 2002:a63:c203:: with SMTP id b3mr4520006pgd.398.1559938080399; Fri, 07 Jun 2019 13:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559938080; cv=none; d=google.com; s=arc-20160816; b=f2Tzg1hiwbNhiIQTZujejHwkMGUehizs7lX/GiVYWYHXHcQ1yzL7VTERX3jPewDdLb 1jk7DXjkZfNBAcFWoOUYxhF7OFquWBZ9ZOeYi7NEODVfteZCeVlMHd1cMzrh7H48wAxN BKf/DXcaR8Au0iBpmtyW16e5dehUxTh0a6R7xmZi5D25jKoBhEtPjRUXy2B8aRXBhpEf RTFZgQtfBEYxwqEMKuwMVAgsMFMNFqT1qPCdhjUiSoPULXRoilqacjPZ61494BJ7k2RW /QJlXi9l+bgveVCtMWo9ByomcIuZAzaCuL6jVNrPy5bYpFaF4vFyUOSdjGmdNoxWzE8U uCPA== 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=tkddrhgc9fnRawBF0D35hvz0qZn+4s6et0r8vuLZYrBaaNmBXdRS52OB4qrzyGl8hX X7t1LeATkuwyVzGE7Ni/AzxgBbhu5l5w1sUS+Hb1EfC0a1/F/cKyiOMgTfGCUUVuDadw AXTvPMRRLDzVX7k3yWvCx0Lwu7M7dta5y0V2+6vdDA6WgCAGQOnoVFdtP7cmcipLIJN5 7RCJC/iN3scjDQMPCmSrlw2V5MoLi/Lb2ZH8SFwB8t+4FLmMOZcKGr77DrHv4yYICTBh i1Irihykkt1/NKosfxuzXMMVtNSn24HG6aWQLmNYqRppJAIRvsEBkyMGlVClMayV939D 0Seg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Ym9jtYGW; 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 z9si2872403pgh.21.2019.06.07.13.07.44; Fri, 07 Jun 2019 13:08:00 -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=Ym9jtYGW; 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 S1730409AbfFGTai (ORCPT + 99 others); Fri, 7 Jun 2019 15:30:38 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:15385 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729172AbfFGTah (ORCPT ); Fri, 7 Jun 2019 15:30:37 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 07 Jun 2019 12:30:21 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 07 Jun 2019 12:30:36 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 07 Jun 2019 12:30:36 -0700 Received: from HQMAIL103.nvidia.com (172.20.187.11) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 7 Jun 2019 19:30:36 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 7 Jun 2019 19:30:36 +0000 Received: from dhcp-10-19-65-14.client.nvidia.com (Not Verified[10.19.65.14]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 07 Jun 2019 12:30:36 -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 V2 2/6] i2c: tegra: remove unnecessary variable init Date: Fri, 7 Jun 2019 12:30:22 -0700 Message-ID: <1559935826-25812-2-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559935826-25812-1-git-send-email-bbiswas@nvidia.com> References: <1559935826-25812-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=1559935821; 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=Ym9jtYGWcA/+e4qZCAXgJybPOGVajALL9DI5Tehoq0RpShBgIkjzBrbm1NLOigG7f Na/mk/e9msxCzG5Hcly9SzDN7YQqSQIIh4TOnZ7j5EfukirtS3Air+1XpNGlmrV9BU Oi4bOCXR4AYL2UaV7+nYWFcq7n0FzrFKuGa/3KVMtX0o1Q0/2JgaaSWvh2PZjw6ZcT oE/udvFZtrSmNlOTGLfOOOjeAQy3G7zdh6uYhAoyn1sMqunKd58PKofwUeJJBgqoVS UOWVH9+qO3lH/qj8gazHUDBsCxeImAzrGV/3Jw1EMyEvjP2d+BgH/P4ujb5i+tA4qs syX9BBdQ5phnw== 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