Commit 40b6a76237563c70466ec7315f644ba87d57dbe5
Committed by
Linus Torvalds
1 parent
52d4b9ac0b
Exists in
master
and in
4 other branches
cpuset.c: remove extra variable
Remove the use of int cpus_nonempty variable from 'update_flag' function. Signed-off-by: Md.Rakib H. Mullick <rakib.mullick@gmail.com> Acked-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
kernel/cpuset.c
... | ... | @@ -1172,7 +1172,7 @@ |
1172 | 1172 | { |
1173 | 1173 | struct cpuset trialcs; |
1174 | 1174 | int err; |
1175 | - int cpus_nonempty, balance_flag_changed; | |
1175 | + int balance_flag_changed; | |
1176 | 1176 | |
1177 | 1177 | trialcs = *cs; |
1178 | 1178 | if (turning_on) |
... | ... | @@ -1184,7 +1184,6 @@ |
1184 | 1184 | if (err < 0) |
1185 | 1185 | return err; |
1186 | 1186 | |
1187 | - cpus_nonempty = !cpus_empty(trialcs.cpus_allowed); | |
1188 | 1187 | balance_flag_changed = (is_sched_load_balance(cs) != |
1189 | 1188 | is_sched_load_balance(&trialcs)); |
1190 | 1189 | |
... | ... | @@ -1192,7 +1191,7 @@ |
1192 | 1191 | cs->flags = trialcs.flags; |
1193 | 1192 | mutex_unlock(&callback_mutex); |
1194 | 1193 | |
1195 | - if (cpus_nonempty && balance_flag_changed) | |
1194 | + if (!cpus_empty(trialcs.cpus_allowed) && balance_flag_changed) | |
1196 | 1195 | async_rebuild_sched_domains(); |
1197 | 1196 | |
1198 | 1197 | return 0; |