Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

futex/requeue: Remove unnecessary ‘NULL’ initialization from futex_proxy_trylock_atomic()

'top_waiter' is assigned unconditionally before first use,
so it does not need an initialization.

[ mingo: Created legible changelog. ]

Signed-off-by: Li zeming <zeming@nfschina.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230725195047.3106-1-zeming@nfschina.com

authored by

Li zeming and committed by
Ingo Molnar
01a99a75 5e0eb679

+1 -1
+1 -1
kernel/futex/requeue.c
··· 269 269 union futex_key *key2, struct futex_pi_state **ps, 270 270 struct task_struct **exiting, int set_waiters) 271 271 { 272 - struct futex_q *top_waiter = NULL; 272 + struct futex_q *top_waiter; 273 273 u32 curval; 274 274 int ret; 275 275