[tip:sched/core] sched: Fix a trivial syntax misuse

From: tip-bot for Shigeru Yoshida
Date: Wed Nov 27 2013 - 09:08:18 EST


Commit-ID: 39e24d8ffbb6aa90222527dbd5991ec49fbbf323
Gitweb: http://git.kernel.org/tip/39e24d8ffbb6aa90222527dbd5991ec49fbbf323
Author: Shigeru Yoshida <shigeru.yoshida@xxxxxxxxx>
AuthorDate: Sat, 23 Nov 2013 18:38:01 +0900
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
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@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Jiri Kosina <trivial@xxxxxxxxxx>
Link: http://lkml.kernel.org/r/20131123.183801.769652906919404319.shigeru.yoshida@xxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/