From: Ulrich Drepper Unless I'm missing something quite tricky here's another tiny cleanup. The generated code is not affected (gcc is smart enough) but for people looking over the code it is just irritating to have the extra conditional. Signed-off-by: Ulrich Drepper Cc: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/sched.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) diff -puN kernel/sched.c~tiny-sched_getaffinity-cleanup kernel/sched.c --- a/kernel/sched.c~tiny-sched_getaffinity-cleanup +++ a/kernel/sched.c @@ -4466,10 +4466,8 @@ long sched_getaffinity(pid_t pid, cpumas out_unlock: read_unlock(&tasklist_lock); mutex_unlock(&sched_hotcpu_mutex); - if (retval) - return retval; - return 0; + return retval; } /** _