[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200709080806.14328-1-vulab@iscas.ac.cn>
Date: Thu, 9 Jul 2020 08:08:06 +0000
From: Xu Wang <vulab@...as.ac.cn>
To: robert.moore@...el.com, erik.kaneda@...el.com,
rafael.j.wysocki@...el.com, lenb@...nel.org, vulab@...as.ac.cn,
linux-acpi@...r.kernel.org, devel@...ica.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] service_layers: osunixmap: Remove unnecessary brackets in acpi_os_map_memory()
Remove extra brackets.
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
tools/power/acpi/os_specific/service_layers/osunixmap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/power/acpi/os_specific/service_layers/osunixmap.c b/tools/power/acpi/os_specific/service_layers/osunixmap.c
index c565546e85bc..52f3e70b5c81 100644
--- a/tools/power/acpi/os_specific/service_layers/osunixmap.c
+++ b/tools/power/acpi/os_specific/service_layers/osunixmap.c
@@ -70,7 +70,7 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length)
fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY);
if (fd < 0) {
fprintf(stderr, "Cannot open %s\n", SYSTEM_MEMORY);
- return (NULL);
+ return NULL;
}
/* Align the offset to use mmap */
@@ -85,7 +85,7 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length)
if (mapped_memory == MAP_FAILED) {
fprintf(stderr, "Cannot map %s\n", SYSTEM_MEMORY);
close(fd);
- return (NULL);
+ return NULL;
}
close(fd);
--
2.17.1
Powered by blists - more mailing lists