* [PATCH] tools/power/acpi/os_specific/service_layers/osunixxf.c:remove unnecessary (void*) conversions
@ 2022-08-22 6:24 Dong Chuanjian
2022-08-23 17:12 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Dong Chuanjian @ 2022-08-22 6:24 UTC (permalink / raw)
To: rafael, lenb, robert.moore
Cc: linux-acpi, devel, linux-kernel, Dong Chuanjian
remove unnecessary void* type casting
Signed-off-by: Dong Chuanjian <chuanjian@nfschina.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tools/power/acpi/os_specific/service_layers/osunixxf.c:remove unnecessary (void*) conversions
2022-08-22 6:24 [PATCH] tools/power/acpi/os_specific/service_layers/osunixxf.c:remove unnecessary (void*) conversions Dong Chuanjian
@ 2022-08-23 17:12 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2022-08-23 17:12 UTC (permalink / raw)
To: Dong Chuanjian
Cc: Rafael J. Wysocki, Len Brown, Robert Moore,
ACPI Devel Maling List,
open list:ACPI COMPONENT ARCHITECTURE (ACPICA),
Linux Kernel Mailing List
On Mon, Aug 22, 2022 at 8:24 AM Dong Chuanjian <chuanjian@nfschina.com> wrote:
>
> remove unnecessary void* type casting
>
> Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
This is ACPICA code, so please submit changes against it to the
upstream ACPICA project on GitHub. Thanks!
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-23 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 6:24 [PATCH] tools/power/acpi/os_specific/service_layers/osunixxf.c:remove unnecessary (void*) conversions Dong Chuanjian
2022-08-23 17:12 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).