Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4346715ybi; Tue, 11 Jun 2019 05:16:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI3SED+SKU+snLJuQO391YRt1U8Wd1Hs0T1ufJK21jQVqif/tg+EoonTUnD5Sq49rwmQuZ X-Received: by 2002:a17:90a:374c:: with SMTP id u70mr26359873pjb.19.1560255382344; Tue, 11 Jun 2019 05:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560255382; cv=none; d=google.com; s=arc-20160816; b=RqDB01qqmtNvBOpKcEiTk46iTHsBiq3QbUPeIU4NWkK+nSVMdSJsrB4OOjtsYoXN5h onAkY03Y5w2ZMU43wIsoorYT1rt/M5Fr3qoy15QBFH4YhNJ79SHqkQOknuqzNbCSX+Y4 tNct0V8/h6mj5Rm9KC8STIYgoScLYUWTXdVCTf6BUvIAD8yjZVgRPWOOoGFw/ClQp7C7 hAAO9APIIfDC0ctDmLPVkt8RsQe5PRv6tInnxylzUajl00mzjvevKymTV5RrWgrMx9ar vb96n7aP8CYpXFs8/pMOtZ9mtdI/1DzwocP3PEqfzVaKfPuyiMMV+dXiBeYS3DH3ML3v 1QIA== 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=oeXxVwEfKJMYPKsxonB7wj8r1KL5MsGEpZmYG2P+Ci1LBHJ27xHLpf8f2Wbrch1qDX 551loC22A153MbfhhSJVoYRP2Nld/bE5QUcB8NmwnZ4uvUoM2RHyECVvJU54DcHhR5M2 p3K2msgzMmM90pBri48eFp3PrTGIB06Kzw+9A//+2SK53YYUz8uNB06crY7V8eVr39gz 0aU4K4MQWgq2U9oBWpyS3Mqfpkd7psAL75a78+19FSqFhUje9mCwR9YG8pCeQD7d/zkb +O3u9mikGx67eGFmx6Ts+/Z8q4gXVs9Bwm9lTrHjaubr8+nWfJDCw4CDcsBlxUpTsdMl rkCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=RW9q9ajs; 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 b22si896693pgm.202.2019.06.11.05.16.06; Tue, 11 Jun 2019 05:16:22 -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=RW9q9ajs; 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 S2387891AbfFKKxM (ORCPT + 99 others); Tue, 11 Jun 2019 06:53:12 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:6089 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387489AbfFKKxM (ORCPT ); Tue, 11 Jun 2019 06:53:12 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 11 Jun 2019 03:53:12 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 11 Jun 2019 03:53:11 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 11 Jun 2019 03:53:11 -0700 Received: from HQMAIL104.nvidia.com (172.18.146.11) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 11 Jun 2019 10:51:44 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 11 Jun 2019 10:51:44 +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 ; Tue, 11 Jun 2019 03:51:23 -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 V5 2/7] i2c: tegra: remove unnecessary variable init Date: Tue, 11 Jun 2019 03:51:09 -0700 Message-ID: <1560250274-18499-2-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560250274-18499-1-git-send-email-bbiswas@nvidia.com> References: <1560250274-18499-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=1560250392; 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=RW9q9ajsUemikCAiNJ+g99D/dIfHmz/Tbcp1WJOSahyTlc7dyBa1KJKovJxMiB+Je FK0KIYNGYAEzDU/ipditPUefalm/Z41cFvP3Pykyqljj9sRtwFkqzUgj9+wS55zMuQ D9Yjn7yXAtahOqYXfmr6ceHtdcd5jxAgR9+MM6Ns5y2jzCPlpkmcX/rfJ2YiIV5pxH CaBqabdJ4qI93d7gXCoQ9NRRpCUvfPLv6mCr6ZolszelbiMSahgAiJusTtfr5mqZbi Kko3eq7Q3PaEQxHJn9fy0BD83bWkgcgijvySdQepO5T2bqddMQxgdrndZPBRESe9DP XjOz5gYaaf6Ag== 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