Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2010997pxf; Fri, 26 Mar 2021 23:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1SioJWBi5SdvoZ2T/C47l8YMRRXZssPozS7aWychTALcnHm5v+vxuMXK+l7LF8xH5GEq6 X-Received: by 2002:a17:906:8147:: with SMTP id z7mr18455249ejw.436.1616828295580; Fri, 26 Mar 2021 23:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828295; cv=none; d=google.com; s=arc-20160816; b=NqVr4zEnkWNyVG7WnViygtkLbKhRijaxwMOJGak+ACoqZBx0oQHDBaOBJgPbxov7lO QScqRbAsd3dwx6I2I1dRiqrjX51UeOF+jUf4tKu05VkaAAr+H/yA72Rc/SPyHcUit/AV wyOYN53rP4exJMHc9BHxv39LXoZsw9kkgrteci8y+B4/d7AwvFECux1S7Tl0rGO9FxTl BcJTrgKCwhYyR9qqVQAxZM/B7NLQvpPK9hpIbISmF2twqO0aws4lt0t3kFbz349467Xy zAJwd0fkn8M8iGsUIsoF4VH3FPfwowpuSSu7SQqasR2M5lWOSynzla/P2hnl4xSU/Plc FkHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=pUtHorHXJEycsujXOFsvquuEE9k0hL9NYLRv7Hr/Y1Q=; b=V+l/wCarsBcrygLx9pJyHJHxUEHwxpVfetjm9v4cLDbz6AtLK0r6/vlw9UtBHOYkTA 89CjcSBVRcjgVNbZg3b6hAFDrkS28mnpdR1djnnCaYu4TPqWQOxWxcOOuLG66Z5aLoDo jjmS9cNLv03xEJTj3dbrAY5DYfUkCqBEkZP4bfk7j3oKJBUH4AKY9hV+0M119XGmvNJx Wgzz7Cw/q8pnIPe58J9nhkbPcEoEaNxk7+FWF3R+UiaC0oiXFsmWgVO0NCNl1gnj4uZ2 ewlR5nz9poATSTDJkPhcfKQBMMvbKa+YJ7fb0YVkeUC5d8OG9EdbCfYWFK0JvISNNdwK ZuYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si8550901edc.426.2021.03.26.23.57.53; Fri, 26 Mar 2021 23:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbhC0Goh (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:37 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15335 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbhC0GoD (ORCPT ); Sat, 27 Mar 2021 02:44:03 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4m1bPDz93nW; Sat, 27 Mar 2021 14:41:44 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:43:35 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 03/15] ACPI: acpi_dbg: fix some coding style issues Date: Sat, 27 Mar 2021 14:40:44 +0800 Message-ID: <1616827256-51840-4-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> References: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: space prohibited between function name and open parenthesis WARNING: else is not generally useful after a break or return Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_dbg.c | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/drivers/acpi/acpi_dbg.c b/drivers/acpi/acpi_dbg.c index d50261d..e641bc1 100644 --- a/drivers/acpi/acpi_dbg.c +++ b/drivers/acpi/acpi_dbg.c @@ -21,7 +21,7 @@ #include #include "internal.h" -#define ACPI_AML_BUF_ALIGN (sizeof (acpi_size)) +#define ACPI_AML_BUF_ALIGN (sizeof(acpi_size)) #define ACPI_AML_BUF_SIZE PAGE_SIZE #define circ_count(circ) \ @@ -613,16 +613,15 @@ static ssize_t acpi_aml_read(struct file *file, char __user *buf, if (ret == -EAGAIN) { if (file->f_flags & O_NONBLOCK) break; - else { - ret = wait_event_interruptible(acpi_aml_io.wait, - acpi_aml_user_readable()); - /* - * We need to retry when the condition - * becomes true. - */ - if (ret == 0) - goto again; - } + + ret = wait_event_interruptible(acpi_aml_io.wait, + acpi_aml_user_readable()); + /* + * We need to retry when the condition + * becomes true. + */ + if (ret == 0) + goto again; } if (ret < 0) { if (!acpi_aml_running()) @@ -683,16 +682,15 @@ static ssize_t acpi_aml_write(struct file *file, const char __user *buf, if (ret == -EAGAIN) { if (file->f_flags & O_NONBLOCK) break; - else { - ret = wait_event_interruptible(acpi_aml_io.wait, - acpi_aml_user_writable()); - /* - * We need to retry when the condition - * becomes true. - */ - if (ret == 0) - goto again; - } + + ret = wait_event_interruptible(acpi_aml_io.wait, + acpi_aml_user_writable()); + /* + * We need to retry when the condition + * becomes true. + */ + if (ret == 0) + goto again; } if (ret < 0) { if (!acpi_aml_running()) -- 2.8.1