signal: Hand SIGQUEUE_PREALLOC flag to __sigqueue_alloc()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Mar 2021 09:19:42 +0000 (10:19 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 14 Apr 2021 16:04:08 +0000 (18:04 +0200)
commit69995ebbb9d3717306a165db88a1292b63f77a37
tree82fc1e24224c161faecca4d9667a8ac49eaf319f
parent4aed8aa41524a1fc6439171881c2bb7ace197528
signal: Hand SIGQUEUE_PREALLOC flag to __sigqueue_alloc()

There is no point in having the conditional at the callsite.

Just hand in the allocation mode flag to __sigqueue_alloc() and use it to
initialize sigqueue::flags.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210322092258.898677147@linutronix.de
kernel/signal.c