mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
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
This commit is contained in:
parent
986af8dc5a
commit
fc4b4d96f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user