Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5602imm; Tue, 25 Sep 2018 14:50:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63jA00nLzy/0TSrryotcJydwEmu0rk0xWOxep93n1s8//PzB4acfka8Zd2AF1bb95poQVvK X-Received: by 2002:aa7:8191:: with SMTP id g17-v6mr3014366pfi.71.1537912248630; Tue, 25 Sep 2018 14:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537912248; cv=none; d=google.com; s=arc-20160816; b=UA6sSsmmDZxjKVEtP5uboeapmvLeWfSzYj+NePSKOY+3ENk5DHfyXfxDh7bL0r8vpu LaJZpj84JZhub8+hSUkIAjchhzVESaZOLEAkCHqs6K7RSHpJedNClrjR3YIw35AbRgms SS68ssIaMio1rh45xnsCwWD7l+XwEgU3AXMTsE8IGZ4P6mKDa+0VWiuWk57LJU+t9HLz 6WzQXr5bevQsSHyTeUqaXARbSp8ToI/jkl35mncrx6ke96kWixFhFBzycqfcAzKUWkmj ZSDMc5GxZV/2VgjLbOnBPi8Nhy31V8WwHdvdugOZS/QNCH2js3Tsc1gOcjD8n5josy0o n9Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uXbbsKWJNukhIyFIqI162BBksTwHx2nKFkZpsLzTOY8=; b=heSyoLGGLmmNs+1V/1uH8tmKBXYICa7l+2aJgY/1bvV+fubNKvEYu9SGRB5sfFLT8A O1B6wvsK49CdJ2HFe9bdCljK3Xac3la+thYaho/Kik42uRI5c/E3ppIzP80Qxp4BpyIn avLqQbSfVsYlyvn6fYd9twITgXYG+QeyLCVEPXHGsyqdiCzgZRri0LOkF3fEcd5sG0eM j2udMW3pvXWZbJvX4fVm+ZRV/ZYGhmEvEF3O1fgm1SCfMzf/VSupA31bNcxK9QxhUsi7 4m7yjOlK1+FqL2pBhL3IJdccISCM49gBwiOFCNOVXxKZUL18wa2RK3YZK38sFcaMIYY3 Hn0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hziAOlbb; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22-v6si3300531pgb.626.2018.09.25.14.50.33; Tue, 25 Sep 2018 14:50:48 -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=@chromium.org header.s=google header.b=hziAOlbb; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbeIZD7e (ORCPT + 99 others); Tue, 25 Sep 2018 23:59:34 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:33068 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbeIZD7e (ORCPT ); Tue, 25 Sep 2018 23:59:34 -0400 Received: by mail-ua1-f68.google.com with SMTP id i4-v6so10120265uak.0 for ; Tue, 25 Sep 2018 14:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uXbbsKWJNukhIyFIqI162BBksTwHx2nKFkZpsLzTOY8=; b=hziAOlbbWj13cfe4ebZRt2Jmz5MMdG5+RZRVrePbZqosVQEe/c/+vShLtOhuDDQyqZ 8gdXG2NABkJrfQCkMDveWigdFsN3/CF2uaZ+TBPzT17YlaAoTXK31XarFnMbIbpZYeRf UmHe+vljtvJZ0DHuknrG4KQedRvTLy5s7cB5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uXbbsKWJNukhIyFIqI162BBksTwHx2nKFkZpsLzTOY8=; b=Q7wRjAb0i3u4ZfGmVNkib4uzHZZFz7N8bF6J29qBN1PeQPuW+nozJY9RUnmHXGaYL/ FeFzh+MB9SjYb8Pv3cPo/KyyRtAh9JV3aat2XwGD1HDgiQRAz0YfZcz/XM2a02eK1+aE ffncm+9gaf+6Rg0BXaJgSS+vF5L+JwyCIVf4tWKhFDM3yL7JoVqDoYFHdNcs7yR2p+Bh R9kX4gWMn8DJHGMSsMmo/wf0PxR/7NWzSr//h4xz/qZlFCNyTGJIODBe7f9wdETbg5T3 lvu+H9auDFLA6HIyHGW2W0LOkpBMQ9br5qJ6REv76kv2XrjwChYKOxdJzMUYFwjAF8o7 9rZw== X-Gm-Message-State: ABuFfoithB+zd8e4BvDOjl1+0qiM1s7F13U0lPqYL93LUYey0wJCCh2Z 7pNzoxrmKuwBD6yF93mqd6fQfwtcaCw= X-Received: by 2002:ab0:51e5:: with SMTP id h34-v6mr1009919uaa.97.1537912197802; Tue, 25 Sep 2018 14:49:57 -0700 (PDT) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com. [209.85.221.170]) by smtp.gmail.com with ESMTPSA id n81-v6sm550300vsi.19.2018.09.25.14.49.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 14:49:56 -0700 (PDT) Received: by mail-vk1-f170.google.com with SMTP id s10-v6so2710671vkh.1 for ; Tue, 25 Sep 2018 14:49:56 -0700 (PDT) X-Received: by 2002:a1f:9b52:: with SMTP id d79-v6mr890052vke.79.1537912196438; Tue, 25 Sep 2018 14:49:56 -0700 (PDT) MIME-Version: 1.0 References: <20180924235235.182649-1-swboyd@chromium.org> <20180924235235.182649-3-swboyd@chromium.org> In-Reply-To: <20180924235235.182649-3-swboyd@chromium.org> From: Doug Anderson Date: Tue, 25 Sep 2018 14:49:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/3] i2c: i2c-qcom-geni: Simplify irq handler To: Stephen Boyd Cc: Wolfram Sang , LKML , linux-i2c@vger.kernel.org, linux-arm-msm , Karthikeyan Ramasubramanian , Sagar Dharia , Girish Mahadevan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Sep 24, 2018 at 4:52 PM Stephen Boyd wrote: > > We don't need to use goto here, we can just collapse the if statement > and goto chain into multiple branches and then combine some duplicate > completion calls into one big if statement. Let's do it to clean up code > some more. > > Cc: Karthikeyan Ramasubramanian > Cc: Sagar Dharia > Cc: Girish Mahadevan > Cc: Doug Anderson > Signed-off-by: Stephen Boyd > --- > drivers/i2c/busses/i2c-qcom-geni.c | 70 +++++++++++++----------------- > 1 file changed, 29 insertions(+), 41 deletions(-) It doesn't gleam as powerfully the cleanups in patch 2/3 but this does have a few nice readability improvements. Reviewed-by: Douglas Anderson