Skip to contentSkip to conversation

acpi: processor_throttling: fixed a few brace coding style issues.

PATCH In review David Archuleta 2 participants 2 messages Jul 26, 2018 – Aug 12, 2018 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: processor_throttling: fixed a few brace coding style issues.

From: darchuletajr <[email protected]>

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

---
 drivers/acpi/processor_throttling.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/acpi/processor_throttling.c +4 -8
index fbc936cf2025..75cc179b352b 100644
@@ -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;
 	}
 
Signature · 1 line
2.18.0
#1 lore raw
Quoted 6 lines · CEST David Archuleta

From: darchuletajr <[email protected]>

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

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

Quoted 53 lines
---
 drivers/acpi/processor_throttling.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/acpi/processor_throttling.c +4 -8
index fbc936cf2025..75cc179b352b 100644
@@ -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;
 	}