diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2016-12-14 15:06:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-14 16:04:08 -0800 |
commit | b5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c (patch) | |
tree | 2fcea15a5c609e51abf25e6cff6e1630627ed068 /COPYING | |
parent | f150f02cfbc7b6b980e260856555abd73235a6b0 (diff) | |
download | linux-b5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c.tar.bz2 |
ipc/sem: simplify wait-wake loop
Instead of using the reverse goto, we can simplify the flow and make it
more language natural by just doing do-while instead. One would hope
this is the standard way (or obviously just with a while bucle) that we
do wait/wakeup handling in the kernel. The exact same logic is kept,
just more indented.
[akpm@linux-foundation.org: coding-style fixes]
Link: http://lkml.kernel.org/r/1478708774-28826-2-git-send-email-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions