2022-08-22 09:18:54

by Li zeming

[permalink] [raw]
Subject: [PATCH] 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(-)

diff --git a/tools/power/acpi/os_specific/service_layers/osunixxf.c b/tools/power/acpi/os_specific/service_layers/osunixxf.c
index b3651a04d68c..127630c38f1a 100644
--- a/tools/power/acpi/os_specific/service_layers/osunixxf.c
+++ b/tools/power/acpi/os_specific/service_layers/osunixxf.c
@@ -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


2022-08-23 19:47:55

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [PATCH] power/acpi: Remove unnecessary return in acpi_os_** function;

On Mon, Aug 22, 2022 at 11:16 AM Li zeming <[email protected]> wrote:
>
> Remove the return in the function; it looks clearer.
>
> Signed-off-by: Li zeming <[email protected]>

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

> ---
> tools/power/acpi/os_specific/service_layers/osunixxf.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/tools/power/acpi/os_specific/service_layers/osunixxf.c b/tools/power/acpi/os_specific/service_layers/osunixxf.c
> index b3651a04d68c..127630c38f1a 100644
> --- a/tools/power/acpi/os_specific/service_layers/osunixxf.c
> +++ b/tools/power/acpi/os_specific/service_layers/osunixxf.c
> @@ -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
>