Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2198340pxf; Sat, 27 Mar 2021 05:12:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxboE3OIBjefUHkf9ULCqTmcxsO4D1kWoLcjiSLgsxGOkOufHUYY8bWOn1omFMG8EMF2u1i X-Received: by 2002:a17:906:95d1:: with SMTP id n17mr19571739ejy.394.1616847131769; Sat, 27 Mar 2021 05:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616847131; cv=none; d=google.com; s=arc-20160816; b=IICnvH7cmPYhZgA0fdJ82wRuzg/iCWRcPlE2/2YeWxvtdmotg1BNWuCwtQiYb+K3A5 Ko+y00NF2NMqK8miSoEeLeXkM61XMfO9xjgB5eT4wt3uaGP6hMAGeikbfNchnjJgOjJ0 UmwqJOz1a4idskD25nNMCowR2z48ZfSNzPwKqy3/Dvyw/+QkCxkTLO4GmiKeNs3VOcRw cszqQPlKMYJonWGVRr8WRgjQk3W0knIyKQw+AmTi6qdapnKZJxNU9pElYEO+L+uSBYte +rXZwmkMhwlgKG7UHWKVi4PCz0+sZxu5vJ1jcTVONQXj+biu1i3FZiesYAGYS+WOVEQQ Hj9w== 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=oAjmpzKKADVMTfwjib+C6wlmN+WPSYQYi3ndV1LbUVgvAKgnmBbeRbLu2tWBO0QWcQ m8stMoHKiX2fGc6ca2Xc6qT42ZSeT9QyVsT0Cu5nlDyTTGh8rGKerCSkCr/xvM98Qz/H WpWd9sg8oQRRon1LCzgkXvTKgvy6zyO+IkE67qZMO0mSy89wy4O6+2qE6gzTumMSx8NU wOvPyR56fpuFrybAQFLbsP9ZclEpTwoe/dg8DBODqfXMy2QBtLtXC2S7U+beyucphLsr zwd+6m/siMm0Bzgue6CnqtjQwlRpjd4ptASqfJtS9u4I3L325hvy1DRJupuZX/oVlQpw rNlg== 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 d2si8807701ejm.291.2021.03.27.05.11.49; Sat, 27 Mar 2021 05:12:11 -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 S230323AbhC0MLS (ORCPT + 99 others); Sat, 27 Mar 2021 08:11:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15012 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhC0MLN (ORCPT ); Sat, 27 Mar 2021 08:11:13 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F6yKt6lJszPrjS; Sat, 27 Mar 2021 20:08:34 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 20:10:59 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v3 02/12] ACPI: processor: fix some coding style issues Date: Sat, 27 Mar 2021 20:08:14 +0800 Message-ID: <1616846904-25719-3-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616846904-25719-1-git-send-email-tanxiaofei@huawei.com> References: <1616846904-25719-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