Skip to content

Commit

Permalink
alarmtimer: Remove unnecessary (void *) cast
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Li zeming authored and KAGA-KOKO committed Jun 18, 2023
1 parent 986af8d commit fc4b4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc4b4d9

Please sign in to comment.