]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] use goto to jump out do/while_each_thread
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 1 Apr 2008 04:29:34 +0000 (12:29 +0800)
committerTony Luck <tony.luck@intel.com>
Wed, 9 Apr 2008 17:17:03 +0000 (10:17 -0700)
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>
arch/ia64/kernel/perfmon.c

index a2aabfdc80d9ecaf4a8d1f4853956ca765e73f64..d1d24f4598da6ce98be2be0b40b7ffb436b30b45 100644 (file)
@@ -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));