projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
986af8d
)
alarmtimer: Remove unnecessary (void *) cast
author
Li zeming
<zeming@nfschina.com>
Fri, 9 Jun 2023 18:20:59 +0000
(
02:20
+0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Sun, 18 Jun 2023 20:41:53 +0000
(22:41 +0200)
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
kernel/time/alarmtimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/alarmtimer.c
b/kernel/time/alarmtimer.c
index 09c9cde06f20471e18c30b929d32d1173d10f669..8d9f13d847f09f97818ea54e53f4235c37c9949e 100644
(file)
--- 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)