]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/time/posix-cpu-timers.c
posix-cpu-timers: Remove pointless comparisons
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:09:22 +0000 (21:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:42 +0000 (11:50 +0200)
commitdd6702241337bcd0bae01d2644b7bae1a496d937
tree6523dbfe991021e9bf87e0f537d1e15126d288d5
parent8ea1de90a5eccdc18c8f05f8596bae8660a3ff9a
posix-cpu-timers: Remove pointless comparisons

The soft RLIMIT expiry code checks whether the soft limit is greater than
the hard limit. That's pointless because if the soft RLIMIT is greater than
the hard RLIMIT then that code cannot be reached as the hard RLIMIT check
is before that and already killed the process.

Remove it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192922.548747613@linutronix.de
kernel/time/posix-cpu-timers.c