Patch 2.6.32.32 to 2.6.32.33
/kernel/cpuset.c
blob:b5d787fab3e72674712392fe4df679dd15673894 -> blob:0ee292b51dd64d0080a2f9affe1cf57c923e0662
--- kernel/cpuset.c
+++ kernel/cpuset.c
@@ -1525,10 +1525,8 @@ static int cpuset_write_resmask(struct c
return -ENODEV;
trialcs = alloc_trial_cpuset(cs);
- if (!trialcs) {
- retval = -ENOMEM;
- goto out;
- }
+ if (!trialcs)
+ return -ENOMEM;
switch (cft->private) {
case FILE_CPULIST:
@@ -1543,7 +1541,6 @@ static int cpuset_write_resmask(struct c
}
free_trial_cpuset(trialcs);
-out:
cgroup_unlock();
return retval;
}