[PATCH] time: alarmtimer: remove unnecessary (void*) conversions
From: Li zeming
Date: Wed Jun 07 2023 - 21:50:22 EST
Pointer variables of void * type do not require type cast.
Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
kernel/time/alarmtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index e918d556dd51..65c20c4f0b7f 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -751,7 +751,7 @@ static int alarm_timer_create(struct k_itimer *new_timer)
static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm,
ktime_t now)
{
- struct task_struct *task = (struct task_struct *)alarm->data;
+ struct task_struct *task = alarm->data;
alarm->data = NULL;
if (task)
--
2.18.2