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>
This commit is contained in:
Li Zefan 2013-06-05 17:15:11 +08:00 committed by Tejun Heo
parent d5c56ced77
commit 06d6b3cbdf
1 changed files with 1 additions and 2 deletions

View File

@ -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();
/*