futex: Get rid of the val2 conditional dance
authorThomas Gleixner <tglx@linutronix.de>
Thu, 22 Apr 2021 19:44:20 +0000 (21:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 6 May 2021 18:19:04 +0000 (20:19 +0200)
commitb097d5ed33561507eeffc77120a8c16c2f0f2c4c
tree8ff6e651e37746f8772bc095338277c05dee276d
parentcdf78db4070967869e4d027c11f4dd825d8f815a
futex: Get rid of the val2 conditional dance

There is no point in checking which FUTEX operand treats the utime pointer
as 'val2' argument because that argument to do_futex() is only used by
exactly these operands.

So just handing it in unconditionally is not making any difference, but
removes a lot of pointless gunk.

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