summaryrefslogtreecommitdiffstats
path: root/crypto/khazad.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2019-01-04 00:27:05 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2019-01-04 22:13:46 +0100
commit4e0982a00564c80cb849a892043450860ef91e14 (patch)
tree3463957586c8b7a5a5772366681b1ee27f097929 /crypto/khazad.c
parentfs/epoll: remove max_nests argument from ep_call_nested() (diff)
downloadlinux-4e0982a00564c80cb849a892043450860ef91e14.tar.xz
linux-4e0982a00564c80cb849a892043450860ef91e14.zip
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/20181108051006.18751-3-dave@stgolabs.net Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Jason Baron <jbaron@akamai.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions