Re: [patch V2 35/38] posix-cpu-timers: Remove pointless comparisons

2019-08-26 Thread Frederic Weisbecker
On Wed, Aug 21, 2019 at 09:09:22PM +0200, Thomas Gleixner wrote: > 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

[patch V2 35/38] posix-cpu-timers: Remove pointless comparisons

2019-08-21 Thread Thomas Gleixner
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: