[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230609182059.4509-1-zeming@nfschina.com>
Date: Sat, 10 Jun 2023 02:20:59 +0800
From: Li zeming <zeming@...china.com>
To: tglx@...utronix.de, jstultz@...gle.com, sboyd@...nel.org
Cc: linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] time: alarmtimer: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast.
Signed-off-by: Li zeming <zeming@...china.com>
---
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
Powered by blists - more mailing lists