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)
commit9cbab8100538efdd93aeae6fc37787d986f2f558
treea34cf1b3d6bdb3b2bbede801a9acdb23d35903ff
parentee7c82da830ea860b1f9274f1f0cdf99f206e7c2
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