From patchwork Wed May 9 19:45:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10390721 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3030C60153 for ; Wed, 9 May 2018 19:46:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FDF128698 for ; Wed, 9 May 2018 19:46:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 142AF286A7; Wed, 9 May 2018 19:46:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8A89528698 for ; Wed, 9 May 2018 19:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GqxzWERo/eQAJGouEaa1/t0ad28Bll6bYux0+tnklmA=; b=s+I/NSHML6h5NG QskYYTFR7iQJdRuIY/riO4U1I/XO86GPoLb+kiL4xAi8wJ3exkX9iN722XlHQy4v4YyiaJE+tze3X dTz8Ec4s+rN9xDfAI40fVgFyCE2b8/5x7MXflitSHRNidNXRP52A3b7ujUcB4h0GA8/UiI7wFgMt7 OFYYsc8avD2NeYI0E119pTEDqZnraYz1Hcb9kXnSfDCdICP5zzYRTr3V5Xh5ODkqRQKJzgpvhBpMi fvY/GaGmp6vx/lzQhMSe6kI1bEyX2GtrYs4ykuSSAzVUTXb5izStElH7LShrUOQPBvF6EBtNlPqSR VaTeyC0iyc/tVnhAUCqQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGV2p-00064Q-TB; Wed, 09 May 2018 19:46:35 +0000 Received: from mail-eopbgr50132.outbound.protection.outlook.com ([40.107.5.132] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGV2E-0005no-TQ for linux-arm-kernel@lists.infradead.org; Wed, 09 May 2018 19:46:00 +0000 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 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 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?ZImD0sArql2FFPwV1CdiuZdxx4t15PdLop3Z0JV+aJxIR+5u47f3r31SFqnd?= =?us-ascii?Q?RC4Dm39TwsrsA9X+GhAmpyUkqQ8uh6BIobGEpA4lE7PMoBZ4lwkWzUCOv+wb?= =?us-ascii?Q?qj/lOONqLtMU+IVCeZ8XET+DUWgQDVbfApj3EcJPXAruDOdgHIMHYWAOqaju?= =?us-ascii?Q?e+Dni5LIcHt/fqAGUvlMVZNFy6m8XO5jZQUr7Tn6NLZddi4xt0RLxJZILfqs?= =?us-ascii?Q?3DEADmPofp9TfUfbR5F+2gNwCONTwNCvu2G78lODelaFJ7fhmoNMNM85Sg3k?= =?us-ascii?Q?8WA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cTYvM3lSlfdgexII1ORHjJnfbz/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180509_124558_987278_0D4B8CC4 X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Andrzej Hajda , Wolfram Sang , Krzysztof Kozlowski , Masahiro Yamada , Kukjin Kim , linux-i2c@vger.kernel.org, Andy Shevchenko , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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");