From: Oleg Nesterov Date: Wed, 17 Jun 2009 23:27:40 +0000 (-0700) Subject: do_wait: simplify retval/tsk_result/notask_error mess X-Git-Tag: v2.6.31-rc1~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64a16caf5e3417ee32f670debcb5857b02a9e08e;p=pandora-kernel.git do_wait: simplify retval/tsk_result/notask_error mess Now that we don't pass &retval down to other helpers we can simplify the code more. - kill tsk_result, just use retval - add the "notask" label right after the main loop, and s/got end/goto notask/ after the fastpath pid check. This way we don't need to initialize retval before this check and the code becomes a bit more clean, if this pid has no attached tasks we should just skip the list search. Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed