Skip to content

Commit

Permalink
[IA64] use goto to jump out do/while_each_thread
Browse files Browse the repository at this point in the history
do_each_thread/while_each_thread is a double loop, so
should use 'goto' rather than 'break' to break out
the loop.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Li Zefan authored and Tony Luck committed Apr 9, 2008
1 parent e914501 commit 6794c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4204,10 +4204,10 @@ pfm_check_task_exist(pfm_context_t *ctx)
do_each_thread (g, t) {
if (t->thread.pfm_context == ctx) {
ret = 0;
break;
goto out;
}
} while_each_thread (g, t);

out:
read_unlock(&tasklist_lock);

DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx));
Expand Down

0 comments on commit 6794c75

Please sign in to comment.