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 <[EMAIL PROTECTED]> --- kernel/sched.c 2007-07-26 14:54:53.000000000 -0700 +++ kernel/sched.c-new 2007-07-29 19:12:16.000000000 -0700 @@ -4464,10 +4464,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; } /** - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/