Re: [PATCH 1/1] sched: Deduplicate code with do-while

2019-06-17 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 03:29:07PM +0300, Pavel Begunkov (Silence) wrote: > From: Pavel Begunkov > > Statements in the loop's body and before it are identical. > Use do-while to not repeat it. > Thanks!

[PATCH 1/1] sched: Deduplicate code with do-while

2019-06-11 Thread Pavel Begunkov (Silence)
From: Pavel Begunkov Statements in the loop's body and before it are identical. Use do-while to not repeat it. Signed-off-by: Pavel Begunkov --- kernel/sched/wait.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/sched/wait.c b/kernel/sched/wait.c index fa0f9