aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-07-19 08:07:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-29 13:24:11 -0400
commit66ec7b2cd0d84561ef3c420b5995d0c1dd2cf1c5 (patch)
tree93d22b9591ae2b52a736d95de5f13aacc1863de6 /arch/powerpc/platforms/cell/spufs
parent67cba9fd645697f1c883390eedcf519353a9baa6 (diff)
spufs_create_context(): simplify failure exits
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs')
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c8
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 4bff08139600..848134e72058 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,
492 } 492 }
493 493
494 ret = spufs_context_open(&path); 494 ret = spufs_context_open(&path);
495 if (ret < 0) { 495 if (ret < 0)
496 WARN_ON(spufs_rmdir(inode, dentry)); 496 WARN_ON(spufs_rmdir(inode, dentry));
497 if (affinity)
498 mutex_unlock(&gang->aff_mutex);
499 mutex_unlock(&inode->i_mutex);
500 goto out;
501 }
502 497
503out_aff_unlock: 498out_aff_unlock:
504 if (affinity) 499 if (affinity)
505 mutex_unlock(&gang->aff_mutex); 500 mutex_unlock(&gang->aff_mutex);
506out_unlock: 501out_unlock:
507 mutex_unlock(&inode->i_mutex); 502 mutex_unlock(&inode->i_mutex);
508out:
509 dput(dentry); 503 dput(dentry);
510 return ret; 504 return ret;
511} 505}