Messages in this thread Patch in this message | | | Date | Sun, 29 Jul 2007 22:16:35 -0400 | From | Ulrich Drepper <> | Subject | [PATCH] tiny sched_getaffinity cleanup |
| |
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 <drepper@redhat.com>
--- 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |