1
0
Fork 0

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>
hifive-unleashed-5.1
Shigeru Yoshida 2013-11-23 18:38:01 +09:00 committed by Ingo Molnar
parent b975dc3689
commit 39e24d8ffb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}