From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: [PATCH 18/30] ACPI-processor: Rename jump labels in acpi_processor_get_throttling_states() Date: Sat, 10 Sep 2016 12:00:28 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mout.web.de ([212.227.17.12]:54509 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752805AbcIJKBh (ORCPT ); Sat, 10 Sep 2016 06:01:37 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org, Len Brown , "Rafael J. Wysocki" Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall , Paolo Bonzini From: Markus Elfring Date: Tue, 6 Sep 2016 19:26:33 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/acpi/processor_throttling.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c index c5ddf96..665e8de 100644 --- a/drivers/acpi/processor_throttling.c +++ b/drivers/acpi/processor_throttling.c @@ -526,7 +526,7 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr) if (!tss || (tss->type != ACPI_TYPE_PACKAGE)) { printk(KERN_ERR PREFIX "Invalid _TSS data\n"); result = -EFAULT; - goto end; + goto free_buffer; } ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found %d throttling states\n", @@ -539,7 +539,7 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr) GFP_KERNEL); if (!pr->throttling.states_tss) { result = -ENOMEM; - goto end; + goto free_buffer; } for (i = 0; i < pr->throttling.state_count; i++) { @@ -559,7 +559,7 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr) ACPI_EXCEPTION((AE_INFO, status, "Invalid _TSS data")); result = -EFAULT; kfree(pr->throttling.states_tss); - goto end; + goto free_buffer; } if (!tx->freqpercentage) { @@ -567,11 +567,10 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr) "Invalid _TSS data: freq is zero\n"); result = -EFAULT; kfree(pr->throttling.states_tss); - goto end; + goto free_buffer; } } - - end: + free_buffer: kfree(buffer.pointer); return result; -- 2.10.0