sched: Simplify return logic in sched_copy_attr()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 9 May 2014 14:54:28 +0000 (16:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2014 09:16:26 +0000 (11:16 +0200)
commite78c7bca56dab5ce4f22694f99115ec07e4935f6
tree10cc18b5bd26d8566a8c348345b6266bb8ee5194
parent3944a9274ef6cda0cc282daf0739832f661670f7
sched: Simplify return logic in sched_copy_attr()

The logic in this function is a little contorted, clean it up:

  * Rather than having chained gotos for the -EFBIG case, just
    return -EFBIG directly.

  * Now, the label 'out' is no longer needed, and 'ret' must be zero
    zero by the time we fall through to this point, so just return 0.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/536CEC24.9080201@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
This page took 0.025485 seconds and 5 git commands to generate.