Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6794c752 authored by Li Zefan's avatar Li Zefan Committed by Tony Luck
Browse files

[IA64] use goto to jump out do/while_each_thread



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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent e9145016
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));