mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched: fix a trivial syntax misuse
@ 2013-11-23  9:38 Shigeru Yoshida
  2013-11-27 14:07 ` [tip:sched/core] sched: Fix " tip-bot for Shigeru Yoshida
  0 siblings, 1 reply; 2+ messages in thread
From: Shigeru Yoshida @ 2013-11-23  9:38 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Jiri Kosina; +Cc: linux-kernel

Use if statement instead of while loop.

Signed-off-by: Shigeru Yoshida <shigeru.yoshida@gmail.com>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5ac63c9..49028db 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3924,7 +3924,7 @@ again:
 	}
 
 	double_rq_lock(rq, p_rq);
-	while (task_rq(p) != p_rq) {
+	if (task_rq(p) != p_rq) {
 		double_rq_unlock(rq, p_rq);
 		goto again;
 	}
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-27 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-23  9:38 [PATCH] sched: fix a trivial syntax misuse Shigeru Yoshida
2013-11-27 14:07 ` [tip:sched/core] sched: Fix " tip-bot for Shigeru Yoshida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome