[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220822062420.4815-1-chuanjian@nfschina.com>
Date: Mon, 22 Aug 2022 14:24:20 +0800
From: Dong Chuanjian <chuanjian@...china.com>
To: rafael@...nel.org, lenb@...nel.org, robert.moore@...el.com
Cc: linux-acpi@...r.kernel.org, devel@...ica.org,
linux-kernel@...r.kernel.org,
Dong Chuanjian <chuanjian@...china.com>
Subject: [PATCH] tools/power/acpi/os_specific/service_layers/osunixxf.c:remove unnecessary (void*) conversions
remove unnecessary void* type casting
Signed-off-by: Dong Chuanjian <chuanjian@...china.com>
diff --git a/tools/power/acpi/os_specific/service_layers/osunixxf.c b/tools/power/acpi/os_specific/service_layers/osunixxf.c
index b3651a04d68c..a7e65fb95caf 100644
--- a/tools/power/acpi/os_specific/service_layers/osunixxf.c
+++ b/tools/power/acpi/os_specific/service_layers/osunixxf.c
@@ -679,7 +679,7 @@ acpi_os_create_semaphore(u32 max_units,
acpi_status acpi_os_delete_semaphore(acpi_handle handle)
{
- sem_t *sem = (sem_t *) handle;
+ sem_t *sem = handle;
if (!sem) {
return (AE_BAD_PARAMETER);
@@ -715,7 +715,7 @@ acpi_status
acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 msec_timeout)
{
acpi_status status = AE_OK;
- sem_t *sem = (sem_t *) handle;
+ sem_t *sem = handle;
int ret_val;
#ifndef ACPI_USE_ALTERNATE_TIMEOUT
struct timespec time;
@@ -832,7 +832,7 @@ acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 msec_timeout)
acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units)
{
- sem_t *sem = (sem_t *) handle;
+ sem_t *sem = handle;
if (!sem) {
return (AE_BAD_PARAMETER);
--
2.18.2
Powered by blists - more mailing lists