Received: by 10.192.165.148 with SMTP id m20csp290775imm; Wed, 9 May 2018 12:46:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq3oTuruaW2Io+EOjf+D+Ox90YFoZsoRTpvSXRvZAqpopq1WHN4AL/Q929TGWvlt2CtOrbY X-Received: by 2002:a17:902:380c:: with SMTP id l12-v6mr35034585plc.19.1525895188251; Wed, 09 May 2018 12:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525895188; cv=none; d=google.com; s=arc-20160816; b=xUZ4j87HraXkfWUgwu4xV7B4pgNeJuVNz4nu48jX+9X4gbGxKMH+Z4DtzfOfVmvfWk ikVC6VS4UYZ1d13VCa+CGiodt2GGEFymY9rjCOz61uRcOVzL9fP9c9LI/9e+jeGjaIbC jsPdo9omtfJ3FIe+GxN7vaBXwTuBOP+vfzMnskfGCN7v52tw6D0Dr++n5LPwIonSqITu B/eonHHo1wvfemjFP3UQCrbwkvYkIsB2N73TfEOAtfqxHGVFxeWb2/utqReqoPzdpp1d dTeKS10OcxM8jdDPq65w7zHyLk9LqOqrDerDQKjO8Tb1Bno/e8623g2g9MeJ7Ui+xvZN tw2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/MyuzccK+7tGBVvA3s90QIugl9K5eHJjQxbNNWaJh5g=; b=mS7m1ZCrM6Ds4XyDBM7CDdrO2Pj9f/KVQPigL1zdcFTUK623e3oESNJhn3jOw+lL+S R4UbZI7ZIgR8YWgqa5Wia8r+bTNvka6lnqwPABVBNkhnJSXt8rqW7y7AO+VSGhUMZnch KsMKrzpXvsUnb2y3SdF7soLICrYe6ycSFMWE8ZxT0ZfgtDqmVt1mJU9U5BknWwev3PEj 6vBxRI/RNJasyFYsRxORyfVyJFnb9ss4uWxVqACWBl2PXzE+l9SJ/YQbWjNYd0cSh9Yq tiZfKsMK9rEcYO9QjbDZ8M+NLH+GyfFCxOuH1/RtkBXjBebxA+3+duhUdodKFzWMQ51+ hAog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=NXyNBQJf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i192-v6si10698251pgc.73.2018.05.09.12.46.12; Wed, 09 May 2018 12:46:28 -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=@axentia.se header.s=selector1 header.b=NXyNBQJf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965799AbeEITpx (ORCPT + 99 others); Wed, 9 May 2018 15:45:53 -0400 Received: from mail-eopbgr50104.outbound.protection.outlook.com ([40.107.5.104]:42160 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965398AbeEITpt (ORCPT ); Wed, 9 May 2018 15:45:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/MyuzccK+7tGBVvA3s90QIugl9K5eHJjQxbNNWaJh5g=; b=NXyNBQJf1lQrcMoWCr+esvtwWq/3s3LkExG41fWvESQIIcmwwF5uI+5wtqxV02tLjlN82Cp43x3S6O4jKKBfObVf3mbzORm46waE+X/rwGOLUu/rs1CByziCEwoy6qDW/u2R6c/iHUjWP8Pn8KmJrzUV4ttFRsLIX8HNLs3GZLQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by HE1PR0202MB2779.eurprd02.prod.outlook.com (2603:10a6:3:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.19; Wed, 9 May 2018 19:45:45 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Cc: Peter Rosin , Kukjin Kim , Krzysztof Kozlowski , Wolfram Sang , Andrzej Hajda , Masahiro Yamada , Andy Shevchenko , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] i2c: exynos5: remove pointless initializers Date: Wed, 9 May 2018 21:45:32 +0200 Message-Id: <20180509194532.28929-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180509194532.28929-1-peda@axentia.se> References: <20180509194532.28929-1-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0197.eurprd05.prod.outlook.com (2603:10a6:3:f9::21) To HE1PR0202MB2779.eurprd02.prod.outlook.com (2603:10a6:3:e8::21) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);SRVR:HE1PR0202MB2779; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0202MB2779;3:80sEi6flAhWVnjGzFAO6weTOGHndUF18nECZrpYJFtMXx/3twKFwKLpOMonk+bg5MYjWYos83bDh447I1i20pvKzoGzw/H9Su/IPAG8fxsx0XZdSJeePqb5LGYby8+z6hwRAg0Hj2U9tQPmVBqaqGiOwO9zJwZTpiP5av4coVlSB924T0++iVj57TwQb9Cx1oNtOfwOv/jFW3nCi3HGVmhkL6c1BgjAOIdB8IJRerPCfy6NToiHBVIYoB5+0D2L9;25:JP8D6zPv0DEhhw1cVtaMqXYXro8SftOaOToYXHGFVMXWuy8l9TePbT7RiaEywY+kQ5pk3MzohVRTNzsV5O0wKvL+SoXXcC/njiofUDFBfVDHWha//pHlZS9MUhUof+oVsxms9SbTbyYlcOUUC5/+jY4+ahGIDLKomTcQcGhfu1+OS+y1RD/MNQMD78TrdQf3q0stwcBjr8ZXqegPCEI7c7k6vRuBLkyrgDp0WP7skxuUj/qn+N828+BHJPUbghgmA/gRXdw2zJGlITobr+X6x2F5X7FHxOR8gf0Hk+M7rQCpan/XMzGpZfcq8gvkviaEYfP1dsnL2Xoyh3iuMZjJ/g==;31:WYJC2pcctKNVeaF4VH/Sy/q2esHQ+78keRmHGCp4luX0QzVhc6IEcvUrg5MBUg3UfbasK3du7lff7Dqd3cAK3n5aUt97sFLnWidMIzVUM9561u3UruDlFAvVNSdLbmdyQKgeJvLz+yIMGJSFB6122OJ4DKPXbX24gcal6H0THCBsAqgZCoV7N8AlXs0KigkJuwGlcOslSDBu+kuu2hGynV2kNuqHElRC9EmGzg0AyJk= X-MS-TrafficTypeDiagnostic: HE1PR0202MB2779: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(2016111802025)(6043046)(6072148)(201708071742011);SRVR:HE1PR0202MB2779;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0202MB2779; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0202MB2779;4:ffKZ0GJ9Y5Tb1E4aOsGI6UsZPeOcOxlA06xi+nSQt4+ThHomdZ7Ldh/mZffVolxEnt6AYaPAPImoAEYzT4xGvZJ2o6Z1F+qBf7yS68ShTnVO5VvKAs8CEF9dCIwGudvtnqrqN3Fy0Mdhp8wm9MwTNSz6ATD7DrxCaOIWrYUqX2QuzK4I3cNMJTKPy7a5QFn5Y/dHnSmlop8Kgkaj5m79ejpxeEQD9hG6fWF77ZcqW6Ib2frvW/SvLmVI6JmsXV5Q6vsBdG/fYrx+qZuZbVaSdA== X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(376002)(39830400003)(366004)(39380400002)(346002)(189003)(199004)(6116002)(66066001)(1076002)(97736004)(446003)(6666003)(11346002)(6486002)(6916009)(50466002)(48376002)(2906002)(478600001)(3846002)(16526019)(186003)(26005)(25786009)(47776003)(2361001)(86362001)(36756003)(74482002)(6506007)(7736002)(52116002)(7416002)(59450400001)(105586002)(106356001)(305945005)(386003)(76176011)(476003)(316002)(81166006)(486006)(53936002)(81156014)(8936002)(956004)(50226002)(54906003)(2616005)(2351001)(4326008)(5660300001)(6512007)(51416003)(16586007)(68736007)(8676002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0202MB2779;H:orc.pedanet;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR0202MB2779;23:Mzk8lLBwTTgeRsoNo0vPW2vfF1lMODPmIpddYs4?= =?us-ascii?Q?8h7asNKq5xNWvDsxPDmbQOZeoRisMB35UOatAhvmQ33ZTsGuqcu0yPhegUkY?= =?us-ascii?Q?Hi5qKCjrPCI/uuxepgB7n8Pr0onV/65jcu/cYj1hKIZdZhJ1Bd03h5GQfE0G?= =?us-ascii?Q?Z/Dwvl3gZnzDxWlohzo/id0ZAfrH+WikmmgDeBdFipaUcNz202KSL8sHqxDR?= =?us-ascii?Q?ZImD0sArql2FFPwV1CdiuZd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4nLMRCbmXwJl8HGrtJl2XbwLaMCEnzRZFX2Xzqh5kCwZM0JJlbV3bRZkwrFNI9nYcKG3YvsGU4+p18FpGoQCXaDi/nRJgr0g=;24:ORj6TXQr0teoZ4HVJ+s+c5ZZgEBG44BkyTc0zwGZSGSZXFv6YM0DVew0a9Qcb7KjdLNK1BDm/npNwLKUawZ898Zgd6hVg/yISXEyVQN2qYc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0202MB2779;7:2Jei4Al9MhbTVjNnKWQHOQYsOiyfqsvi0VaU7X3L4WE1TY0MJRcTYvM3lSlfdgexII1ORHjJnfbz/8gw+QVVNgmuLiUOk9Dp1sLuQStegFkQ34LyeES0MLevQtBiDKqXnHdK+H92VjxHbABYAh2nWhGWK/Pt1YClUelOqro4aWLTO6nJgZbf9OtlW6jEmjW72Vl1gsjXi/n4ZDeoSFiBUO+yI8w2eE3QzqBqx/NaZiGcXJfcPTlNJUpj8JKi8XT9 X-MS-Office365-Filtering-Correlation-Id: 6d66a958-1b14-4147-bf64-08d5b5e57513 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 19:45:45.6347 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d66a958-1b14-4147-bf64-08d5b5e57513 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2779 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variables are always assigned before use anyway. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-exynos5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index a2cbc779c33a..185fba37e830 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -707,7 +707,7 @@ static int exynos5_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct exynos5_i2c *i2c = adap->algo_data; - int i = 0, ret = 0, stop = 0; + int i, ret, stop; if (i2c->suspended) { dev_err(i2c->dev, "HS-I2C is not initialized.\n"); -- 2.11.0