From 6b54bdd1685a3e81dd062b6886e8e729e5b2a8ee Mon Sep 17 00:00:00 2001 From: Jonathan Bergh Date: Thu, 28 Sep 2023 23:48:23 +0200 Subject: [PATCH] ACPI: utils: Remove redundant braces around individual statement Remove braces that are not required for a one-line statement which follows a control statement. Signed-off-by: Jonathan Bergh [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki --- drivers/acpi/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 0fcb3cf89ad22..79915d4a0031c 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -342,9 +342,8 @@ acpi_evaluate_reference(acpi_handle handle, u32 i = 0; - if (!list) { + if (!list) return AE_BAD_PARAMETER; - } /* Evaluate object. */ -- 2.30.2