linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi: processor_throttling: fixed a few brace coding style issues.
@ 2018-07-26 20:23 David Archuleta
  2018-08-12 11:19 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: David Archuleta @ 2018-07-26 20:23 UTC (permalink / raw)
  To: rjw; +Cc: lenb, linux-acpi, linux-kernel, darchuletajr

From: darchuletajr <darchuletajr@gmail.com>

Fixed a few brace coding style issues found by running
./scripts/checkpatch

Signed-off-by: David Archuleta Jr. <darchuletajr@gmail.com>
---
 drivers/acpi/processor_throttling.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index fbc936cf2025..75cc179b352b 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -298,9 +298,8 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
 
 	status = acpi_evaluate_integer(pr->handle, "_TPC", NULL, &tpc);
 	if (ACPI_FAILURE(status)) {
-		if (status != AE_NOT_FOUND) {
+		if (status != AE_NOT_FOUND)
 			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TPC"));
-		}
 		return -ENODEV;
 	}
 
@@ -431,9 +430,8 @@ static int acpi_processor_get_throttling_control(struct acpi_processor *pr)
 
 	status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer);
 	if (ACPI_FAILURE(status)) {
-		if (status != AE_NOT_FOUND) {
+		if (status != AE_NOT_FOUND)
 			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _PTC"));
-		}
 		return -ENODEV;
 	}
 
@@ -516,9 +514,8 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr)
 
 	status = acpi_evaluate_object(pr->handle, "_TSS", NULL, &buffer);
 	if (ACPI_FAILURE(status)) {
-		if (status != AE_NOT_FOUND) {
+		if (status != AE_NOT_FOUND)
 			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TSS"));
-		}
 		return -ENODEV;
 	}
 
@@ -596,9 +593,8 @@ static int acpi_processor_get_tsd(struct acpi_processor *pr)
 
 	status = acpi_evaluate_object(pr->handle, "_TSD", NULL, &buffer);
 	if (ACPI_FAILURE(status)) {
-		if (status != AE_NOT_FOUND) {
+		if (status != AE_NOT_FOUND)
 			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TSD"));
-		}
 		return -ENODEV;
 	}
 
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] acpi: processor_throttling: fixed a few brace coding style issues.
  2018-07-26 20:23 [PATCH] acpi: processor_throttling: fixed a few brace coding style issues David Archuleta
@ 2018-08-12 11:19 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2018-08-12 11:19 UTC (permalink / raw)
  To: David Archuleta; +Cc: lenb, linux-acpi, linux-kernel

On Thursday, July 26, 2018 10:23:41 PM CEST David Archuleta wrote:
> From: darchuletajr <darchuletajr@gmail.com>
> 
> Fixed a few brace coding style issues found by running
> ./scripts/checkpatch
> 
> Signed-off-by: David Archuleta Jr. <darchuletajr@gmail.com>

IMO this doesn't add any value to the code, so I'm not going to apply it.

> ---
>  drivers/acpi/processor_throttling.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
> index fbc936cf2025..75cc179b352b 100644
> --- a/drivers/acpi/processor_throttling.c
> +++ b/drivers/acpi/processor_throttling.c
> @@ -298,9 +298,8 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
>  
>  	status = acpi_evaluate_integer(pr->handle, "_TPC", NULL, &tpc);
>  	if (ACPI_FAILURE(status)) {
> -		if (status != AE_NOT_FOUND) {
> +		if (status != AE_NOT_FOUND)
>  			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TPC"));
> -		}
>  		return -ENODEV;
>  	}
>  
> @@ -431,9 +430,8 @@ static int acpi_processor_get_throttling_control(struct acpi_processor *pr)
>  
>  	status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer);
>  	if (ACPI_FAILURE(status)) {
> -		if (status != AE_NOT_FOUND) {
> +		if (status != AE_NOT_FOUND)
>  			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _PTC"));
> -		}
>  		return -ENODEV;
>  	}
>  
> @@ -516,9 +514,8 @@ static int acpi_processor_get_throttling_states(struct acpi_processor *pr)
>  
>  	status = acpi_evaluate_object(pr->handle, "_TSS", NULL, &buffer);
>  	if (ACPI_FAILURE(status)) {
> -		if (status != AE_NOT_FOUND) {
> +		if (status != AE_NOT_FOUND)
>  			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TSS"));
> -		}
>  		return -ENODEV;
>  	}
>  
> @@ -596,9 +593,8 @@ static int acpi_processor_get_tsd(struct acpi_processor *pr)
>  
>  	status = acpi_evaluate_object(pr->handle, "_TSD", NULL, &buffer);
>  	if (ACPI_FAILURE(status)) {
> -		if (status != AE_NOT_FOUND) {
> +		if (status != AE_NOT_FOUND)
>  			ACPI_EXCEPTION((AE_INFO, status, "Evaluating _TSD"));
> -		}
>  		return -ENODEV;
>  	}
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-12 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26 20:23 [PATCH] acpi: processor_throttling: fixed a few brace coding style issues David Archuleta
2018-08-12 11:19 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).