Skip to content

Commit

Permalink
cpuset: remove redundant check in cpuset_cpus_allowed_fallback()
Browse files Browse the repository at this point in the history
task_cs() will never return NULL.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Li Zefan authored and Tejun Heo committed Jun 5, 2013
1 parent d5c56ce commit 06d6b3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/*
Expand Down

0 comments on commit 06d6b3c

Please sign in to comment.