From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753005AbeBEMig (ORCPT ); Mon, 5 Feb 2018 07:38:36 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:36528 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752943AbeBEMi1 (ORCPT ); Mon, 5 Feb 2018 07:38:27 -0500 Subject: Re: [PATCH v12 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning To: Joe Perches , "Rafael J. Wysocki" References: <1516725385-24535-1-git-send-email-john.garry@huawei.com> <1516725385-24535-8-git-send-email-john.garry@huawei.com> <8beedbb3-9098-6440-9ddf-e64b2a8e5151@huawei.com> <1517832650.7489.256.camel@perches.com> CC: Mika Westerberg , Lorenzo Pieralisi , "Rafael J. Wysocki" , "Rob Herring" , Bjorn Helgaas , "Arnd Bergmann" , Mark Rutland , Olof Johansson , Hanjun Guo , "dann.frazier@canonical.com" , "Benjamin Herrenschmidt" , Linux Kernel Mailing List , ACPI Devel Maling List , Linuxarm , Linux PCI , Corey Minyard , "devicetree@vger.kernel.org" , linux-arch , Randy Dunlap From: John Garry Message-ID: Date: Mon, 5 Feb 2018 12:17:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1517832650.7489.256.camel@perches.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/02/2018 12:10, Joe Perches wrote: > On Mon, 2018-02-05 at 11:01 +0000, John Garry wrote: >> On 04/02/2018 07:45, Rafael J. Wysocki wrote: >>> + /* translate the I/O resources */ >>>> + for (i = 0; i < count; i++) { >>>> + if (resources[i].flags & IORESOURCE_IO) { >>>> + ret = acpi_translate_logicio_res(adev, host, >>>> + &resources[i]); >>> >>> You don't need to break this line as far as I'm concerned. >> >> This is just to keep checkpatch happy. I could move the complete >> function call to a single line. And also shortening some symbols will help. > > This could also use continue as well > > /* translate the I/O resources */ > for (i = 0; i < count; i++) { > if (!(resources[i].flags & IORESOURCE_IO)) > continue; > ret = acpi_translate_logicio_res(adev, host, &resources[i]); > if (ret) { > kfree(resources); > dev_err(child, "Translate I/O range failed (%d)!\n", > ret); > return ret; > } > } Sure, that reduces the indentation as well. cheers > > > . >