OSDN Git Service

sched/wait: Deduplicate code with do-while
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 11 Jun 2019 12:29:07 +0000 (15:29 +0300)
committerIngo Molnar <mingo@kernel.org>
Mon, 24 Jun 2019 17:23:40 +0000 (19:23 +0200)
commit016190a4b5824df2d5bb97951a04dd3629973671
tree236bd8d0637164bd704b6340f83c32c9bac01c49
parent8ec59c0f5f4966f89f4e3e3cab81710c7fa959d0
sched/wait: Deduplicate code with do-while

Statements in the loop's body and before it are identical.
Use do-while to not repeat it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/43ffea6ee2152b90dedf962eac851609e4197218.1560256112.git.asml.silence@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/wait.c