commit | 4e0982a00564c80cb849a892043450860ef91e14 | [log] [tgz] |
---|---|---|
author | Davidlohr Bueso <[email protected]> | Thu Jan 03 15:27:05 2019 -0800 |
committer | Linus Torvalds <[email protected]> | Fri Jan 04 13:13:46 2019 -0800 |
tree | 3463957586c8b7a5a5772366681b1ee27f097929 | |
parent | 74bdc129850c32eaddc625ce557da560303fbf25 [diff] |
fs/epoll: simplify ep_send_events_proc() ready-list loop The current logic is a bit convoluted. Lets simplify this with a standard list_for_each_entry_safe() loop instead and just break out after maxevents is reached. While at it, remove an unnecessary indentation level in the loop when there are in fact ready events. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Davidlohr Bueso <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Al Viro <[email protected]> Cc: Jason Baron <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>