summaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-06-05 17:15:11 +0800
committerTejun Heo <tj@kernel.org>2013-06-05 13:55:13 -0700
commit06d6b3cbdf94bc37732df83e7c25774370411a56 (patch)
tree3f379e95749dceb02d9d15190a212a9331a58976 /kernel/cpuset.c
parentd5c56ced775f6bdc32b689b01c9c4f9b66e18610 (diff)
downloadlinux-06d6b3cbdf94bc37732df83e7c25774370411a56.tar.bz2
cpuset: remove redundant check in cpuset_cpus_allowed_fallback()
task_cs() will never return NULL. Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 64b3f791bbe5..f0c884a0e574 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2253,8 +2253,7 @@ void cpuset_cpus_allowed_fallback(struct task_struct *tsk)
rcu_read_lock();
cs = task_cs(tsk);
- if (cs)
- do_set_cpus_allowed(tsk, cs->cpus_allowed);
+ do_set_cpus_allowed(tsk, cs->cpus_allowed);
rcu_read_unlock();
/*