mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02: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:
committed by
Thomas Gleixner
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)
|
||||
|
Reference in New Issue
Block a user