Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp189949ybi; Fri, 7 Jun 2019 06:30:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHzGUthavnvPgr0zHa8FDcv7dqZzZKzgrGCndgP7Gdeha2HRomlaM35SDNgJ3Z83QkHCl0 X-Received: by 2002:a17:90a:216f:: with SMTP id a102mr5456945pje.29.1559914241560; Fri, 07 Jun 2019 06:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559914241; cv=none; d=google.com; s=arc-20160816; b=sCTA7uS3khPSGXfBftX0swd+8AtrafmyL/i1TWeonHq7hXhRk4705ADudXq/Qxdkys m7PlOFna765CFu8zWhHCfxhzASZSwYbg4ME/dLfRWMWFZ4M6Hb7pP9ZizNbV3ikav88K VKhATpRQIYe6TXU2ZYlEmQH3d3hnuk9dxE9wp6G7dZA8RO5OHCboMaXCuJJAhyDVnPP7 b9yDnZXNPCCbXLRrUrfljCfsjYq9tAxc7WDWsYOCS2bwGTtZqT5VtCqfrwk8PAn/gTve jt1AINGkFoubHkc+zDo761HMaZ5VWQ6ezZLNZ9A0y2UnBcur2wnuVnFGhO1fCPxcKyoE WnXA== 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=bIs4t6pG7C8b9YdTHwvLImnfaMYMUPpnRc4mS4FXXGI=; b=CNRtL75IpL/vr3NOEIsvjvk2Wc9o74QBptmV4tTJ5lHHvSuidP8E0zJ7d9kFLfRF8z 2vsm6Zl5kT/qDgoESQix0iXmkx+O379VZqmpt2DfRn+r+F++4t4r9G+ANgJdUfNUEFwn pn+vQ7ymx4jD1CtXquw4Dxqgb4RA08bHSZcpr/sZVubeU2U9CsXh3nVnO4twHnPl7i0F 8HPpU4k2KivZZMAXt9UZzEgiLZh6atk5iSK7gyqzvRbAsU6BwFg1VJCXGDEx4kls0/vq CLDWgeZhiT2GNifkx2k9PJ3wX2xu19NBcBDNz8QJ3/x1eO5qRbtIij7U818tx2FcfOrc bu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Oe1yWBc9; 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 n9si1702280pgr.280.2019.06.07.06.30.22; Fri, 07 Jun 2019 06:30:41 -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=Oe1yWBc9; 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 S1728880AbfFGLzU (ORCPT + 99 others); Fri, 7 Jun 2019 07:55:20 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:17385 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbfFGLzT (ORCPT ); Fri, 7 Jun 2019 07:55:19 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 07 Jun 2019 04:55:18 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 07 Jun 2019 04:55:18 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 07 Jun 2019 04:55:18 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL106.nvidia.com (172.18.146.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 7 Jun 2019 11:55:18 +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; Fri, 7 Jun 2019 11:55:18 +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 ; Fri, 07 Jun 2019 04:55:18 -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 V1 2/6] i2c: tegra: remove unnecessary variable init Date: Fri, 7 Jun 2019 04:55:03 -0700 Message-ID: <1559908507-31192-2-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559908507-31192-1-git-send-email-bbiswas@nvidia.com> References: <1559908507-31192-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=1559908518; bh=bIs4t6pG7C8b9YdTHwvLImnfaMYMUPpnRc4mS4FXXGI=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=Oe1yWBc9ElCQV6wDY6dW0P2ryDz4yT6Yz/4IDgNc4f7qsL7FL0MV+mDJdLnB657/n a+d20Ya4scqoT9VsWBkdTR3Oz+7yhnlJVAmso725q8kSXJxojGvwpnBbM/9JQYaK1n 6bWgSUYT0Cc2XSpJ2rlaryVoS7wXxHsjg4SFaR0jH8vhg2O2lU7NdTyMe0otlUd+Th 9GrdD4AWxGUN0towhKp5EoaR+uQJKNvrtAG+O6MgyxO63q8GL0h83GqGpQd4l4rRAG d5gRPMWwWKkAvLSMok5eCUu8C6DJ1dpGwyBw0ue77mYRb1OjI2+hDp6AY/b2EqXxUE aGeMakooFRA4A== 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 --- 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