diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-19 16:07:30 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-29 21:24:11 +0400 |
commit | 66ec7b2cd0d84561ef3c420b5995d0c1dd2cf1c5 (patch) | |
tree | 93d22b9591ae2b52a736d95de5f13aacc1863de6 | |
parent | 67cba9fd645697f1c883390eedcf519353a9baa6 (diff) | |
download | op-kernel-dev-66ec7b2cd0d84561ef3c420b5995d0c1dd2cf1c5.zip op-kernel-dev-66ec7b2cd0d84561ef3c420b5995d0c1dd2cf1c5.tar.gz |
spufs_create_context(): simplify failure exits
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 4bff081..848134e 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -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; } |