The void * type pointer does not need to be cast.
Signed-off-by: Zhou jie <[email protected]>
---
drivers/acpi/processor_idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 4556c86c3465..3be86d2f9098 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -150,7 +150,7 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr,
static void __lapic_timer_propagate_broadcast(void *arg)
{
- struct acpi_processor *pr = (struct acpi_processor *) arg;
+ struct acpi_processor *pr = arg;
if (pr->power.timer_broadcast_on_state < INT_MAX)
tick_broadcast_enable();
--
2.18.2
On Fri, Dec 23, 2022 at 10:02 AM Zhou jie <[email protected]> wrote:
>
> The void * type pointer does not need to be cast.
>
> Signed-off-by: Zhou jie <[email protected]>
> ---
> drivers/acpi/processor_idle.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
> index 4556c86c3465..3be86d2f9098 100644
> --- a/drivers/acpi/processor_idle.c
> +++ b/drivers/acpi/processor_idle.c
> @@ -150,7 +150,7 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr,
>
> static void __lapic_timer_propagate_broadcast(void *arg)
> {
> - struct acpi_processor *pr = (struct acpi_processor *) arg;
> + struct acpi_processor *pr = arg;
>
> if (pr->power.timer_broadcast_on_state < INT_MAX)
> tick_broadcast_enable();
> --
Applied as 6.3 material with some edits in the subject and changelog, thanks!