Received: by 10.192.165.148 with SMTP id m20csp864770imm; Thu, 10 May 2018 01:45:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMHpXq826xz0L5BdT8862nNf5fBAqvm6jtQW0JYtkKONOnNDtNb9qTfG11EjresdtmYiTF X-Received: by 2002:a17:902:145:: with SMTP id 63-v6mr529031plb.332.1525941910021; Thu, 10 May 2018 01:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525941909; cv=none; d=google.com; s=arc-20160816; b=amDJ02Udj1z2oxD1vvV3h9Qq18tLSd6yw4j9PPn+lJ8lwtcen6GP6gEwcZldxikOji FZXZmx0/fPwA2G27xUtaSyFl4k1om6TsM/uuQYS+n1HHr7ryAklgWJthhWyNcmTlPZlR 0tt2mAm3Z0/n45hWywvzxF774oBqk7vklzUEPknDDFA5r6yQ5fGhboHoba5P2fpVBpK6 myL/7jNR5Dm9xAIfnm83sQtLQDJD8FEZgqvYbMuokgDlpE6WZAZF+NnFanGcwXqQudp+ H+9Xvjst+BB8PcwOCRI1dE60s2q2Xu3pqk7OMI2ci1L9VSQLjUt8zb9+2MKR/90IGDlq iztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=JISLXxq9sRSV1Oevt5ImxE1NjlOSW3oVwK9THso3KAA=; b=dNO3dvSktx/YGpIDQ+ap5WVN7FU29TNn7SsfwtGlQKpoY7+nELbcyitXbcQLvmhKD/ wgIalzOoEyh2g96M4me5QrvWxH1QAS0EsbcGsHuE+s4U3FJZcOQ012mFEIyU+4YNsvg5 lnP9Xg4YkHlYyc946w8TZHzJEMqL5iRl77g/0+GD9dBZfjjI5TXxjp6EJwMM82G80+hQ mpJmENjIHUOp0uz7QG7b/j/k91Drn1tJADm9W8+l2ET4DESVuOAAbXSxyOj/azpP4Owc plBv/lyg8W8UtYMhV9m9magdor24q0AgyLVPLvQTtTaYbT6f30lzb1quKgLapWmP1+6A W95w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YxRHj2MO; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si314803plb.220.2018.05.10.01.44.55; Thu, 10 May 2018 01:45:09 -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=@samsung.com header.s=mail20170921 header.b=YxRHj2MO; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756791AbeEJIoW (ORCPT + 99 others); Thu, 10 May 2018 04:44:22 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:60752 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756379AbeEJIoR (ORCPT ); Thu, 10 May 2018 04:44:17 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180510084414euoutp02cef2cc9c3591a69a139cc89e782abc1a~tPAg7Y6Vx1966019660euoutp02Z for ; Thu, 10 May 2018 08:44:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180510084414euoutp02cef2cc9c3591a69a139cc89e782abc1a~tPAg7Y6Vx1966019660euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525941854; bh=JISLXxq9sRSV1Oevt5ImxE1NjlOSW3oVwK9THso3KAA=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=YxRHj2MOxaoAmAssAZak6MWsXOgoz/cpyp3CiBWOzyTC5tW/ZMwlb4YeIM6061Jf5 X2iL3ho35HrxEUOBcqoZ4ziDXTzbY9gZT1UClUFSfNJy8LyzHgqWmJIbbU7myZ9gFd I33HjkEcjPpCyvDJAdQ3CoA/FZyTC3ui4IZHsdcI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180510084413eucas1p1663063c55b8271399de688892016d832~tPAfc2KPy1596415964eucas1p1Q; Thu, 10 May 2018 08:44:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id B4.24.05700.C5604FA5; Thu, 10 May 2018 09:44:12 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180510084410eucas1p16d234eaa2ae5822029754b9529ea01ab~tPAdBjSy42568425684eucas1p1k; Thu, 10 May 2018 08:44:10 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180510084409eusmtrp21441b4b72a68dce475053f604e884e12~tPAcCiQvC2825928259eusmtrp2e; Thu, 10 May 2018 08:44:09 +0000 (GMT) X-AuditID: cbfec7f2-5ffe19c000011644-0f-5af4065cca86 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8D.89.04178.95604FA5; Thu, 10 May 2018 09:44:09 +0100 (BST) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180510084409eusmtip2b4b1b5b323187d1848826badbb65abb1~tPAbk2ApX1445514455eusmtip2c; Thu, 10 May 2018 08:44:09 +0000 (GMT) Subject: Re: [PATCH 2/2] i2c: exynos5: remove pointless initializers To: Peter Rosin , 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 From: Andrzej Hajda Message-ID: Date: Thu, 10 May 2018 10:44:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509194532.28929-2-peda@axentia.se> Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUhTYRjl3b27uxtOrvNjLypJi+gD0oSKS5mJCO1X5L8Yad3ypqZutjlT o5RBuYma2Ww2NbPUdEXW/BYdNstpNWdmkpH5Q+1DmUib6BC1bVfJf+c8zznveQ68OCIws4Px VGkWLZdS6SKMh3YMumyHzmNOyeG2Li5ZotKxyLszCwhps73ikMaZCTapXncC8nNPNUZW2kws ss9cC8jmIT1C9v1wgBie+EF/FUdsNGgw8aPheHFrfb54SLeCioffz6Jih3HXWY6EF5VEp6dm 0/KI6Iu8lOEBA5p5j5PzouQpVgCm2EWAi0PiCHz5ZhQUAR4uIJoA1Nd1shniBNAwN4cyxAGg bXWRtW2xFpduqZ65Vf3NGEPsAJaZnqMelT8RBzUVP72OAOIUrJj4w/KIEKKXBVvuD3rTMeIA XG+dxDyYT0TDt6ZijgejxF7Y9L0K8eBA4hxU/XJxGI0fHH446w3gEkfhwuSG14sQYbDTXo0w WAi/zdZ6wyAxxoGTJf1uM+4mcbC3nmYq+MN5SxuHwaFws7t2q9oNOPlbhTJeNYDTa4UYszgB Byyf2J53EPfRLT0RzPgkNHavIMzzvvCr3Y85wReWd+i2x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Zz3vEFllJBAemJJanZqakFqEUwfEwenVANjlM+6l+Vm fEm3jE2Nq9479zIwha2a3F6pVa7+41H5pAyLRwfllx/pP3vebP3X9hsJkk/6lUuaJKwmmpxS N+E9tXua7dObDAZlX/MmTL+V4faBMT/8SPqsj/3CZpPEnE+f1Snx+Dt1xY33N70/2n7tXpK7 gWdBsjX7bf4qK9bTQRnrp4hENF1XYinOSDTUYi4qTgQAn6vqfOkCAAA= X-CMS-MailID: 20180510084410eucas1p16d234eaa2ae5822029754b9529ea01ab X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180510084410eucas1p16d234eaa2ae5822029754b9529ea01ab X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180509194552epcas3p4777026e41c7b34663eb11345e4f3d82d X-RootMTR: 20180509194552epcas3p4777026e41c7b34663eb11345e4f3d82d References: <20180509194532.28929-1-peda@axentia.se> <20180509194532.28929-2-peda@axentia.se> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 you can merge both patches into one. Regards Andrzej > > if (i2c->suspended) { > dev_err(i2c->dev, "HS-I2C is not initialized.\n");