diff options
author | Oleg Nesterov <oleg@redhat.com> | 2009-06-17 19:27:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:53 -0400 |
commit | 64a16caf5e3417ee32f670debcb5857b02a9e08e (patch) | |
tree | 1e32f8ac1ad0d7cefeeb6bfdac995ec1ad6d7396 /kernel/backtracetest.c | |
parent | 9e8ae01d1c86dcaa6443c897662545d088036e4c (diff) |
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 <oleg@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/backtracetest.c')
0 files changed, 0 insertions, 0 deletions