Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

spufs_create_context(): simplify failure exits

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information...
commit 66ec7b2cd0d84561ef3c420b5995d0c1dd2cf1c5 1 parent 67cba9f
Al Viro authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 arch/powerpc/platforms/cell/spufs/inode.c
View
8 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.