]> git.karo-electronics.de Git - linux-beck.git/commit
ipc/sem: simplify wait-wake loop
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 14 Dec 2016 23:06:46 +0000 (15:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:08 +0000 (16:04 -0800)
commitb5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c
tree2fcea15a5c609e51abf25e6cff6e1630627ed068
parentf150f02cfbc7b6b980e260856555abd73235a6b0
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>
ipc/sem.c