Skip to contentSkip to conversation

ACPI: bus: Add missing braces to acpi_sb_notify()

PATCH New Rafael J. Wysocki 1 participant 1 message Apr 14, 2023 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: bus: Add missing braces to acpi_sb_notify()

From: Rafael J. Wysocki <[email protected]> Subject:

As per the kernel coding style.

No functional impact.

---
 drivers/acpi/bus.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/acpi/bus.c +2 -1
Index: linux-pm/drivers/acpi/bus.c
===================================================================
@@ -624,8 +624,9 @@ static void acpi_sb_notify(acpi_handle h
 	if (event == ACPI_SB_NOTIFY_SHUTDOWN_REQUEST) {
 		if (!work_busy(&acpi_sb_work))
 			schedule_work(&acpi_sb_work);
-	} else
+	} else {
 		pr_warn("event %x is not supported by \\_SB device\n", event);
+	}
 }
 
 static int __init acpi_setup_sb_notify_handler(void)