Messages in this thread Patch in this message | | | Date | Sat, 23 Nov 2013 18:38:01 +0900 (JST) | Subject | [PATCH] sched: fix a trivial syntax misuse | From | Shigeru Yoshida <> |
| |
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
| |