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

* [tip:sched/core] sched: Fix a trivial syntax misuse
  2013-11-23  9:38 [PATCH] sched: fix a trivial syntax misuse Shigeru Yoshida
@ 2013-11-27 14:07 ` tip-bot for Shigeru Yoshida
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Shigeru Yoshida @ 2013-11-27 14:07 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, trivial, peterz, shigeru.yoshida, tglx

Commit-ID:  39e24d8ffbb6aa90222527dbd5991ec49fbbf323
Gitweb:     http://git.kernel.org/tip/39e24d8ffbb6aa90222527dbd5991ec49fbbf323
Author:     Shigeru Yoshida <shigeru.yoshida@gmail.com>
AuthorDate: Sat, 23 Nov 2013 18:38:01 +0900
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 26 Nov 2013 18:37:55 +0100

sched: Fix a trivial syntax misuse

Use if statement instead of while loop.

Signed-off-by: Shigeru Yoshida <shigeru.yoshida@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Kosina <trivial@kernel.org>
Link: http://lkml.kernel.org/r/20131123.183801.769652906919404319.shigeru.yoshida@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 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 c180860..687985b 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3654,7 +3654,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;
 	}

^ 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