Skip to content

Commit

Permalink
spufs_create_context(): simplify failure exits
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 29, 2012
1 parent 67cba9f commit 66ec7b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,20 +492,14 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
}

ret = spufs_context_open(&path);
if (ret < 0) {
if (ret < 0)
WARN_ON(spufs_rmdir(inode, dentry));
if (affinity)
mutex_unlock(&gang->aff_mutex);
mutex_unlock(&inode->i_mutex);
goto out;
}

out_aff_unlock:
if (affinity)
mutex_unlock(&gang->aff_mutex);
out_unlock:
mutex_unlock(&inode->i_mutex);
out:
dput(dentry);
return ret;
}
Expand Down

0 comments on commit 66ec7b2

Please sign in to comment.