--- 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;
}