Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2050702pxf; Sat, 27 Mar 2021 01:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPYdVEZVYXIIYJm4DYTgDJYrlTcDAgkIu0UiaUpe4GFxiIN7r7983Tu0xFWMbvIaU3jR6r X-Received: by 2002:a17:906:229b:: with SMTP id p27mr19796837eja.287.1616832775139; Sat, 27 Mar 2021 01:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616832775; cv=none; d=google.com; s=arc-20160816; b=C6b/7HIR/jiyoufnU5WUS/02mi8hrM9W5WT7qnnaVvT/lJKwhb2aJnwConiMSryxD2 +eniszo/kNSSWOW0XuRP+4A90imrz18tULelDCq6NIuRial/7fg3FhWgywOzKmdP2dI7 AwKM7UxZzI+cOVUhJkmEIGa6yyiqtIY5U0yBMDtj0Eh03ZwyzhAX81jjy81kgbS/NE0F XNRTu6thiuuHXqlnT/a+kYxobjjD8BB1ZbJ81xWVFocIzoJbefsgpmAlnyOJAweDjqOr lKcH2i5u/zH+ngpQMU2D6cFOaFJYClQyYbRM826fphC0VZdNX267BT1FObczvdHj2eIr 9DFw== 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=Ol2rAkM3Fz9wQ+T9HBQbisp58x4/05I4ZSw4ELZBFEg=; b=Zp1Y59eCtiCWB0RxhxYRyNOosdvO3vPkzXjV9bOINCxZ6QPWq5A8Cciw02haGoIgeD zfWu1L13GkiiOr+5sLR6AaDz4kWf9yx1xCLpds2QcXdmOhDF2PMJuwQLfNyrt07NEj2p A0gmgI9aWKj9zO6EXtod2oEjz86hgpHHC+feqqxeCJpowbH4cmHF/vfoOL0+WHTzPDpE eSWo8lO7op7PXiZaBl4/b9BwHwbZZeJ0Yj9Y/5DI6XzT0Ad/QcXKqkVnObXEud4ef2D+ z7ttZ82ia8E021v10K/waCXEAtZ8+eXgK0RV673bIoOxDCQpMe683P+Q2PQxJ7ly4hV9 P63A== 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 da5si4671376edb.565.2021.03.27.01.12.32; Sat, 27 Mar 2021 01:12:55 -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 S231620AbhC0HuA (ORCPT + 99 others); Sat, 27 Mar 2021 03:50:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:14920 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbhC0HtU (ORCPT ); Sat, 27 Mar 2021 03:49:20 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F6rXg4lrCzkjSk; Sat, 27 Mar 2021 15:47:31 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:49:02 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v2 02/15] ACPI: processor: fix some coding style issues Date: Sat, 27 Mar 2021 15:46:20 +0800 Message-ID: <1616831193-17920-3-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616831193-17920-1-git-send-email-tanxiaofei@huawei.com> References: <1616831193-17920-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: ERROR: code indent should use tabs where possible WARNING: Block comments use a trailing */ on a separate line WARNING: Missing a blank line after declarations WARNING: labels should not be indented Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_processor.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index fc89f3a..2d5bd2a 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c @@ -25,10 +25,7 @@ DEFINE_PER_CPU(struct acpi_processor *, processors); EXPORT_PER_CPU_SYMBOL(processors); -/* -------------------------------------------------------------------------- - Errata Handling - -------------------------------------------------------------------------- */ - +/* Errata Handling */ struct acpi_processor_errata errata __read_mostly; EXPORT_SYMBOL_GPL(errata); @@ -151,10 +148,7 @@ static int acpi_processor_errata(void) return result; } -/* -------------------------------------------------------------------------- - Initialization - -------------------------------------------------------------------------- */ - +/* Initialization */ #ifdef CONFIG_ACPI_HOTPLUG_CPU int __weak acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id, int *pcpu) @@ -306,6 +300,7 @@ static int acpi_processor_get_info(struct acpi_device *device) */ if (invalid_logical_cpuid(pr->id) || !cpu_present(pr->id)) { int ret = acpi_processor_hotadd_init(pr); + if (ret) return ret; } @@ -431,10 +426,7 @@ static int acpi_processor_add(struct acpi_device *device, } #ifdef CONFIG_ACPI_HOTPLUG_CPU -/* -------------------------------------------------------------------------- - Removal - -------------------------------------------------------------------------- */ - +/* Removal */ static void acpi_processor_remove(struct acpi_device *device) { struct acpi_processor *pr; @@ -892,7 +884,7 @@ int acpi_processor_evaluate_cst(acpi_handle handle, u32 cpu, info->count = last_index; - end: +end: kfree(buffer.pointer); return ret; -- 2.8.1