Skip to content

Commit 01a99a7

Browse files
Li zemingIngo Molnar
Li zeming
authored and
Ingo Molnar
committed
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5e0eb67 commit 01a99a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/futex/requeue.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ futex_proxy_trylock_atomic(u32 __user *pifutex, struct futex_hash_bucket *hb1,
269269
union futex_key *key2, struct futex_pi_state **ps,
270270
struct task_struct **exiting, int set_waiters)
271271
{
272-
struct futex_q *top_waiter = NULL;
272+
struct futex_q *top_waiter;
273273
u32 curval;
274274
int ret;
275275

0 commit comments

Comments
 (0)