aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-06-05 05:15:11 -0400
committerTejun Heo <tj@kernel.org>2013-06-05 16:55:13 -0400
commit06d6b3cbdf94bc37732df83e7c25774370411a56 (patch)
tree3f379e95749dceb02d9d15190a212a9331a58976 /kernel
parentd5c56ced775f6bdc32b689b01c9c4f9b66e18610 (diff)
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')
-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)
2253 2253
2254 rcu_read_lock(); 2254 rcu_read_lock();
2255 cs = task_cs(tsk); 2255 cs = task_cs(tsk);
2256 if (cs) 2256 do_set_cpus_allowed(tsk, cs->cpus_allowed);
2257 do_set_cpus_allowed(tsk, cs->cpus_allowed);
2258 rcu_read_unlock(); 2257 rcu_read_unlock();
2259 2258
2260 /* 2259 /*