Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10054715ybi; Wed, 24 Jul 2019 15:03:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTW6BMT7zEUD45dIraiUetDt+OcswbPni0ppY1Zk/f+PXcv2ejpV0Gh55bj2OswhK4rwSG X-Received: by 2002:aa7:9834:: with SMTP id q20mr13568422pfl.196.1564005826617; Wed, 24 Jul 2019 15:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564005826; cv=none; d=google.com; s=arc-20160816; b=ZanGOHXCZzbucYUOLQ08VGAcXYsJVuM7VzvUYk9fbInCkyQXtDFbjCVq2PXl/j/ihq NiK3/4trYTkHt0ijZ9HdNhcPnjoIT4EL0TYuAuF57fQg6j6P9nJcpl72sAUBpwPnbxyi Op5I4TyreptFjFIZkgj5Qcwe0WmELHb1/S1lE7XnwpIiF1SWchUurV7u6i2dEERnxjY0 MMtnZuZub0xlYUr7yLj5hXQMk1qS3SyGoLycpROxI/SoVuSAFC6XlFzSeCu9giER5EJ/ pTthIzif4+8j/meMltT3CwNLsAWmUQX9yCmTaaqZoOT3l3CY7/rYQFaZFnbUdPJM3R2y GplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zYMPVzBvHqYKVDMyVvmNbhIxj8uZfBxaOotqtgbHECQ=; b=JEmjArMROF65HNpCHyTXr+/3a6jR9Rs/gnYjZKf4EI1bTE3E3obnmuyuXqWIy7lTT/ /gr9OSyDjoMH4ndnjpYyOzJFm3EkB9Jn72ry+RUc1CeEvQt3YgfnELrzvHWjdH6hSd0X Y+0f7lSlICTMAEcErGU+N++ChVhBmrS3CV61fo+pouQhFSKhNo8zBS1EOY5yVYs/sF4g vvCW1lVukLpgSs7/DQnxGCZpG27uiCh8WP/cbkiC+o7Z+PfYXF4GvjJOYjzrBMkAheI8 gCxb/fkhIMw8bbKHZEeLL/zOOQuC/MQkM4tvWQJwHrLRNWpR5nIbh/pB0feqhW7QrrbJ Qi6w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si16443851pgu.504.2019.07.24.15.03.31; Wed, 24 Jul 2019 15:03:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728912AbfGXTKM convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Jul 2019 15:10:12 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33332 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfGXTKM (ORCPT ); Wed, 24 Jul 2019 15:10:12 -0400 Received: by mail-wr1-f67.google.com with SMTP id n9so48218602wru.0; Wed, 24 Jul 2019 12:10:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=HSdo9ZmudjoY5QfVd80yVoDhymQ27WsVZ3uLmAFSang=; b=UQ6HCb0/f1XrGVWnQ40XkLGhlIU01u9FQrsfKnawPRRbBuY16J/QH2JzBwJAHgL0DO Ug2eMEw8Sb9WnAJs+hOkydXE90YuQlmBKVFxTBpTm58axGPVbTWSIJxdJEQAVxgNG96l ua9+c82futZonjh0nb73t4+vzIdgNyHW7itfIrL12WqogghfrnCgAhq9Dt4FifSCQl7u /Qu5mGwmpiwhcU8/3Ck6uGgL/f4CRRNUDpeiecNnkFff0uLLjbIHTMLRYmBY3uyy39d3 tZ4SIXPMgqZup56+6xH39XYDfRzylaK9Qm5j0+1VPhupoYxwL70XkHGon9OyPAX0l2DW HWUA== X-Gm-Message-State: APjAAAVK6/jarw+YTYNSrNzeAJY0B6Cg3I5c2xLHLgc0ScA9cFa6xDfi VGshgPIgOIKq6cbPmyhO94s= X-Received: by 2002:a5d:4d81:: with SMTP id b1mr6533715wru.27.1563995409586; Wed, 24 Jul 2019 12:10:09 -0700 (PDT) Received: from kozik-lap ([194.230.155.239]) by smtp.googlemail.com with ESMTPSA id v4sm44882540wmg.22.2019.07.24.12.10.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2019 12:10:08 -0700 (PDT) Date: Wed, 24 Jul 2019 21:10:06 +0200 From: Krzysztof Kozlowski To: Artur =?utf-8?B?xZp3aWdvxYQ=?= Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org, cw00.choi@samsung.com, myungjoo.ham@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, georgi.djakov@linaro.org, m.szyprowski@samsung.com Subject: Re: [RFC PATCH 03/11] devfreq: exynos-bus: Change goto-based logic to if-else logic Message-ID: <20190724191006.GF14346@kozik-lap> References: <20190723122016.30279-1-a.swigon@partner.samsung.com> <20190723122016.30279-4-a.swigon@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20190723122016.30279-4-a.swigon@partner.samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 23, 2019 at 02:20:08PM +0200, Artur Świgoń wrote: > This patch improves code readability by changing the following construct: > > > if (cond) > > goto passive; > > foo(); > > goto out; > >passive: > > bar(); > >out: > > into this: > > > if (cond) > > bar(); > > else > > foo(); > > Signed-off-by: Artur Świgoń > --- > drivers/devfreq/exynos-bus.c | 24 +++++++++--------------- > 1 file changed, 9 insertions(+), 15 deletions(-) Code looks much better: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof