projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5d3aa
)
sched: clean up sched_getaffinity()
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 9 Aug 2007 09:16:46 +0000
(11:16 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 9 Aug 2007 09:16:46 +0000
(11:16 +0200)
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 42029634ef5a4a9ef743b7631a99a5da6d5a5afa..50c3587b06cb4fa8df2452e3d674ee4f68529400 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-4473,10
+4473,8
@@
long sched_getaffinity(pid_t pid, cpumask_t *mask)
out_unlock:
read_unlock(&tasklist_lock);
mutex_unlock(&sched_hotcpu_mutex);
- if (retval)
- return retval;
- return
0
;
+ return
retval
;
}
/**