Received: by 10.192.165.148 with SMTP id m20csp1539186imm; Thu, 10 May 2018 12:18:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsRcO/uAp0tRP0KyGgbTxCwKFOzTuIeB+0W/sQJJlwpJ+QymGiFtGIdYeD2gH5GvZ/98fa X-Received: by 2002:a63:7f1a:: with SMTP id a26-v6mr2003652pgd.371.1525979920249; Thu, 10 May 2018 12:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525979920; cv=none; d=google.com; s=arc-20160816; b=JYdzvTk9IoTOozIdt/6Fg71Fc/DJv6wceTmkhdkxLu5LvHkql1xbjUOk93+v8RIAQT p9bVOvsLksps1z7CsDYVD7Y/yHzWlQcjuaeiO/abwYb/jGZEyOBhk5RFC/UziM/akf2G eA4s4aZid7LCKokpr6lNu+7iZszhIGRosO5o6SjOz0sVgilaaC2bBD32HjRwXH+tQuNt QHQi7xfiU5kvVdQGYUykJvmWhUZZbWqHWm4B0GlK819+nRna19r0NcVSJ487uMw2W42M qle8276TJPNHfhENMxqMYIsoDVM1o8WSjOEHXeDyp0/c0rXFX0TkdoemHqDVBhAvtBEo FJ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=/V8TIQRrfOUtTjfQD+/K2IWOHDIvaMqzj+hrlkYfSjk=; b=cRmW6OmygNnbB/C6QL7qFHTTuyBgmha5JCCDezC+Xax71H8ePFuWUsgHBZveB7uZpu X/fG/jo+MCEvMg5mmDnDCQAJApGUeNF56arIbrhoyxgeuLV90kYNfn6AqOy4gEIEy5DF 9+nIOklPPTfRWI2ubihlxf+tY71f/9zNbs+jvFIsOr7DSPrT8yI2b7B2ynGlmrxJU7qy +pXUO/C2lphqaymILbU+9GvjtxqO4ly2TJ3jkvRWGFM0XOZMS8aUuMbgi4IlswgW6fxy tEwVgw7ReaPXVPVPxSASD13Ew4x9uWFbFp7MwZ/UcrGTmWV/otl0o/qQcaKh8oJjM6jl Wq0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=vC+uEqWW; 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 z9-v6si1568395pll.423.2018.05.10.12.18.25; Thu, 10 May 2018 12:18:40 -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=vC+uEqWW; 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 S1752116AbeEJTQs (ORCPT + 99 others); Thu, 10 May 2018 15:16:48 -0400 Received: from mail-ve1eur01on0118.outbound.protection.outlook.com ([104.47.1.118]:20736 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752070AbeEJTQj (ORCPT ); Thu, 10 May 2018 15:16:39 -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=/V8TIQRrfOUtTjfQD+/K2IWOHDIvaMqzj+hrlkYfSjk=; b=vC+uEqWWdfVO/Kcl7AiP1socLgFkWaCSJG7oAIdU5ixMXfjXqEKL3HcVUqEEy5yAGClveOOkGC3fiwj1s2W9ZOZu64qOsa1ygve3hdRc9yjf64K8IBWC34t6SgLcmknc1SPoGw3uIDNpjsZN4+h0jmr/4+qQjlmQcE/qjfWo2co= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 10 May 2018 19:16:35 +0000 Subject: Re: [PATCH 2/2] i2c: exynos5: remove pointless initializers To: Andrzej Hajda , linux-kernel@vger.kernel.org Cc: Kukjin Kim , Krzysztof Kozlowski , Wolfram Sang , Masahiro Yamada , Andy Shevchenko , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <20180509194532.28929-1-peda@axentia.se> <20180509194532.28929-2-peda@axentia.se> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <6a6f56f7-7a85-b784-e847-f23a8ae41391@axentia.se> Date: Thu, 10 May 2018 21:16:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1P190CA0004.EURP190.PROD.OUTLOOK.COM (2603:10a6:3:bc::14) To VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(7021125)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(2017052603328)(7153060)(7193020);SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2782;3:W9ThtaVCbm64AuE1GlxNPggQKXLya8rcFP4zm4IHLEKNL9K7cHq1NKSb2Q71U289wVb9sOCP/qgWkPxFoS+mI09ZsTKbr+C7WPIVnp29zYcm+uKZWSGivoqCv0KSKu89/y+avDk7FEATSMuVybHLaork7Wtvuw7XfNQr5jtYRfrW1IXlTUZhvcaakIf0c44oebSeVb6ON7tXT758OFkT9YEXSlDZ53I3y6dRGexntm/s02zhF0H38xilVQauOEpf;25:hmHyWCxAY2YfQa5zxHbqjWkJ3Gw4acgylNA5yljp4MGoJvm7yL6Ob4JY3uJydQWrc0CK33KCR8UwMucmy3fDlwWA/EEIStaI32IbcWD4pRPF6sj0dawvMNDQemP9h70Pnp3do3CEPMV5a7bffipro9WXLuIhdB1T4mRdRMWVpKZtSzjDc6RKdrybraK57dzU9T6jZczsmt6Acth+/g8dQTbdXQD9c+0QSfvfc0vyz0siedtofMEsHzX4hrdhCOULIVzwH0BuqdnEMiRwxJo/RQs8f3GDgbb8Lol0sj0Bx8yH71iONRmW0ipXiysO+19324ECm95FgjoZvGtTduAKsA==;31:EafGQ9ucHpRxIL6su8ahb5Iiz7W4O/ub4qslGr6YRlZOUy5LIaGGzpgoDM2OoV8JmGOMpBNOFtsNovNwkLMGSAGZCJ28Z+YJ9UbVF2d0ApRoZ11XxNTAO0o7cCRFoG31JoCWU8oxDInD6ITa5Z7Yasv6nbLXFChCx2jCSieRei0d8ojsxemkJ+9AnKRzDDK2mievkCuBEdOwSQpNagZE+yT6TENYB2Ic8jU2nzwmhmk= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2782: 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)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(6043046)(201708071742011);SRVR:VI1PR0202MB2782;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2782;4:Re5aopB1gnV+69RzztwnhTDkH27AHtx5JuHugbz1BFFzKCiZGZktNDUvlYGZFbtcdgeacdO+kRuyaB1+7C1N2Jih95dVSX5ymYze2nGq0dY2NAWlLHpa+oG6BCPkS+mebibS3/M9mg838OzMTkhDWaBWlqFUooe6CaTS5RBqq7wPKqHNSfstp1imOhhhTtLuKpQev3zV/Te7CIFd2EbTs9WPzRvTJJQqlAEZKeTdlD29bpeah/ajLYEeK//fXlideSsL4H4lHVgdlfkpA2gdNQ== X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39830400003)(396003)(376002)(366004)(346002)(39380400002)(377424004)(189003)(199004)(316002)(74482002)(31686004)(65806001)(16576012)(66066001)(52116002)(65956001)(58126008)(2906002)(54906003)(93886005)(53936002)(6116002)(3846002)(86362001)(229853002)(76176011)(2486003)(105586002)(97736004)(106356001)(6246003)(6486002)(386003)(64126003)(68736007)(53546011)(59450400001)(31696002)(47776003)(52146003)(36916002)(23676004)(77096007)(16526019)(186003)(26005)(5660300001)(65826007)(476003)(81156014)(81166006)(8936002)(7736002)(305945005)(36756003)(478600001)(7416002)(230700001)(956004)(2616005)(50466002)(3260700006)(25786009)(11346002)(4326008)(486006)(117156002)(446003)(8676002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0202MB2782;H:[192.168.13.3];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: =?utf-8?B?MTtWSTFQUjAyMDJNQjI3ODI7MjM6aFNlOFR3M1Y1Zkp2Sk5GeG5PMiswbXlv?= =?utf-8?B?Vk5HNkdBclpzT1J4RGxpdmxDNjBOTE9aSlBOUjh0b2JHQjJESFRXMWI2ZlUz?= =?utf-8?B?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QtoYr6XolkP9tdaAY8Qn05pxArdGj/bD9Mg1XVgfML7EXuSuPC7SdW9sRmlwXZxl+HLhjQ/DICbIdsCzjRvYJaoyUL8ZuYHeUAJhnkpSgyXDnTW6RmvVNsuStO3lBx0mQBrO0c=;24:TNeV1UjT0MH0GwzE0KHjmjKi0bxm6LS2qceqZNO5oWBxr2sJvrDlBpa7GfBIpAD5S23pbj7jNS5K6QXx8dwm+fyDqyWNbTYhHhIIX3jHWIA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2782;7:1tpB3W6jUzOBVEz2twB4TCPaL8YLy/rwNVbEFz62FCOmDF37ZydEVBws4jztzYNmkkXVhMi1NwGYUv7ZtiVLI/amoAvUhjceXAdavwtifAZ6hC4v3UnanCPkmKueTCwN3ax7ibqO2tx0TbrV1ZASLIEbF07mO6CftRHVAM+QRJoUU3bXUnEvQUgvCMM1PzGIvtraN3ZTlk2TybMP4VQdd1vkOUPrpaBJ+R9JvV8/FdXJp3wsreyA8yWbWqXBjVMS X-MS-Office365-Filtering-Correlation-Id: 3d0ece87-238c-4adb-c8ed-08d5b6aa8cc9 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 19:16:35.7398 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d0ece87-238c-4adb-c8ed-08d5b6aa8cc9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2782 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-10 10:44, Andrzej Hajda wrote: > On 09.05.2018 21:45, Peter Rosin wrote: >> 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; > > I hope gcc is smart enough to not complain in case of ret. I think any compiler is smart enough to see that; you must have missed this line: ret = clk_enable(i2c->clk); which is the first to touch ret in the function. > I think you can merge both patches into one. I could, but I wanted to make the patches totally obvious and easy to review. The patches do independent things, so I prefer not to squash. Cheers, Peter > > Regards > Andrzej > >> >> if (i2c->suspended) { >> dev_err(i2c->dev, "HS-I2C is not initialized.\n"); > >