Skip to contentSkip to conversation

power/acpi: Remove unnecessary return in acpi_os_** function;

PATCH In review Li zeming 2 participants 2 messages Aug 22, 2022 – Aug 23, 2022

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 power/acpi: Remove unnecessary return in acpi_os_** function;

Remove the return in the function; it looks clearer.

---
 tools/power/acpi/os_specific/service_layers/osunixxf.c | 3 ---
 1 file changed, 3 deletions(-)
tools/power/acpi/os_specific/service_layers/osunixxf.c +0 -3
index b3651a04d68c..127630c38f1a 100644
@@ -510,8 +510,6 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length)
 
 void acpi_os_unmap_memory(void *where, acpi_size length)
 {
-
-	return;
 }
 #endif
 
@@ -1313,5 +1311,4 @@ acpi_os_execute(acpi_execute_type type,
 
 void acpi_os_wait_events_complete(void)
 {
-	return;
 }
Signature · 1 line
2.18.2
#1 lore raw
Quoted 4 lines · Li zeming

Remove the return in the function; it looks clearer.

Signed-off-by Li zeming <zeming(a)nfschina.com>

This is ACPICA code, so please submit changes against it to the upstream ACPICA project on GitHub. Thanks!

Quoted 26 lines
---
 tools/power/acpi/os_specific/service_layers/osunixxf.c | 3 ---
 1 file changed, 3 deletions(-)
tools/power/acpi/os_specific/service_layers/osunixxf.c +0 -4
index b3651a04d68c..127630c38f1a 100644
@@ -510,8 +510,6 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length)
 
 void acpi_os_unmap_memory(void *where, acpi_size length)
 {
-
-       return;
 }
 #endif
 
@@ -1313,5 +1311,4 @@ acpi_os_execute(acpi_execute_type type,
 
 void acpi_os_wait_events_complete(void)
 {
-       return;
 }
--

2.18.2