]> git.baikalelectronics.ru Git - kernel.git/commit
do_wait: factor out "retval != 0" checks
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Feb 2008 12:19:02 +0000 (04:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:26 +0000 (09:22 -0800)
commit5f9a5ab82cf75c910846c1db070cfa41f358f911
treea34cf1b3d6bdb3b2bbede801a9acdb23d35903ff
parent506505024861bfa4910cc2bc08956840643a4252
do_wait: factor out "retval != 0" checks

Every branch if the main "if" statement does the same code at the end.  Move
it down.  Also, fix the indentation.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c