power/acpi: Remove unnecessary return in acpi_os_** function;
Subsystems (2)
PATCH 1/1 power/acpi: Remove unnecessary return in acpi_os_** function;
Remove the return in the function; it looks clearer.
Signed-off-by Li zeming <[email protected]>
--- 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
@@ -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
Rafael J. Wysocki
maintainerQuoted 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@@ -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