Skip to contentSkip to conversation

drivers: acpi: Fix label indentation and leading comma formatting issues

PATCH Applied Jonathan Bergh 2 participants 2 messages Sep 28, 2023 – Oct 3, 2023 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drivers: acpi: Fix label indentation and leading comma formatting issues

Fixed the following formatting issues flagged by checkpatch in utils.c:
* Remove incorrect indentation before goto label
* Remove whitespace ahead of comma in parameter list

---
 drivers/acpi/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/utils.c +2 -2
index 2ea14648a661..300646bf8ba7 100644
@@ -399,7 +399,7 @@ acpi_evaluate_reference(acpi_handle handle,
 		acpi_handle_debug(list->handles[i], "Found in reference list\n");
 	}
 
-      end:
+end:
 	if (ACPI_FAILURE(status)) {
 		list->count = 0;
 		//kfree(list->handles);
@@ -523,7 +523,7 @@ acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...)
 	vaf.va = &args;
 
 	path = acpi_handle_path(handle);
-	printk("%sACPI: %s: %pV", level, path ? path : "<n/a>" , &vaf);
+	printk("%sACPI: %s: %pV", level, path ? path : "<n/a>", &vaf);
 
 	va_end(args);
 	kfree(path);
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 25 lines · Jonathan Bergh

Fixed the following formatting issues flagged by checkpatch in utils.c:
* Remove incorrect indentation before goto label
* Remove whitespace ahead of comma in parameter list

---
 drivers/acpi/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/utils.c +1 -1
index 2ea14648a661..300646bf8ba7 100644
@@ -399,7 +399,7 @@ acpi_evaluate_reference(acpi_handle handle,
                acpi_handle_debug(list->handles[i], "Found in reference list\n");
        }
 
-      end:
+end:
        if (ACPI_FAILURE(status)) {
                list->count = 0;
                //kfree(list->handles);

drivers/acpi/utils.c acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...)

Quoted 9 lines
drivers/acpi/utils.c +1 -2
@@ -523,7 +523,7 @@ acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...)
        vaf.va = &args;
 
        path = acpi_handle_path(handle);
-       printk("%sACPI: %s: %pV", level, path ? path : "<n/a>" , &vaf);
+       printk("%sACPI: %s: %pV", level, path ? path : "<n/a>", &vaf);
 
        va_end(args);
        kfree(path);
--

Applied as 6.7 material along with the [2/2] with edis in subjects and changelogs.

Thanks!