Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2010646pxf; Fri, 26 Mar 2021 23:57:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydvNJp1NVWjPrpShW7RGu8N6rmPZSbB8PPOhoTkMGT1wSUpqqd2NQz6Cil8GWHHoYudZZv X-Received: by 2002:a17:906:2b46:: with SMTP id b6mr18834058ejg.521.1616828236198; Fri, 26 Mar 2021 23:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828236; cv=none; d=google.com; s=arc-20160816; b=XugCyElLg1DciAkpHV4Uozp38wStFUJxnW6mNeWRHMvqBJN1kib8xVKLoUB8RlwSb5 xxuHOLP6hSGIl99KPHKrOP+NeWQNPoLEA/CnEFfAwYngty75sYBGAykiS9BofxjSvXU9 CkuOhH2Ss3zmHjbjELfZwJFahse2T3ULqhupunvJUGsNygwRt5A3s4PgKVF1+AOKrQ3q ekHwl9MsIjLdSaMCJyEGUPkXhwRtDRiTPWdv3hHL72kt5T+3DmnyL9ZD8yrQ0epwzq6i LXIMOueEySBk9v+p+gXeXsZo7RECV2I2aeh4ym09s7nXQRWUrWu2GaGlIAL60TQX+SD5 FvLg== 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=fBRgTELhHI+NxWtEgX2UOA744mTEpTRWWC6omVpdv6EGTPcZA1yjdo7eCHzbf7qExR 9K0skfZWQhgunnpSMoRZQJakArvBr1EkWJCqp1DzMszKCD5RLmC8dvOooQlcts3wvHuu x1fSFuVPbZUM8TCE4ki2PNY+ZDc4E63hLCxx8pVv9Bt6w61CJkokMYHOKqBafc5YyZMn IXdYp+biXC8qmjZQCDYRsCP6Vvgdr1jCJGBXUTXT1WODMcIhvzb3z0VY87082VFf5CnS /IZbdo76uqfTBWeEdj6EK2Fa5Y218DJO7DzZ0ki/g72UXa1eUEvoDhk6qrCCHjzsNFJX /+BQ== 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 m24si8797628ejc.193.2021.03.26.23.56.54; Fri, 26 Mar 2021 23:57:16 -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 S231523AbhC0Gof (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15336 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbhC0GoB (ORCPT ); Sat, 27 Mar 2021 02:44:01 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4m28hQz93nY; 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:34 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 02/15] ACPI: processor: fix some coding style issues Date: Sat, 27 Mar 2021 14:40:43 +0800 Message-ID: <1616827256-51840-3-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: 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