Skip to content

Commit fc4b4d9

Browse files
Li zemingKAGA-KOKO
authored andcommitted
alarmtimer: Remove unnecessary (void *) cast
Pointers of type void * do not require a type cast when they are assigned to a real pointer. Signed-off-by: Li zeming <zeming@nfschina.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230609182059.4509-1-zeming@nfschina.com
1 parent 986af8d commit fc4b4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/alarmtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ static int alarm_timer_create(struct k_itimer *new_timer)
751751
static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm,
752752
ktime_t now)
753753
{
754-
struct task_struct *task = (struct task_struct *)alarm->data;
754+
struct task_struct *task = alarm->data;
755755

756756
alarm->data = NULL;
757757
if (task)

0 commit comments

Comments
 (0)