projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67cba9f
)
spufs_create_context(): simplify failure exits
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 19 Jul 2012 12:07:30 +0000
(16:07 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 29 Jul 2012 17:24:11 +0000
(21:24 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/powerpc/platforms/cell/spufs/inode.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/inode.c
b/arch/powerpc/platforms/cell/spufs/inode.c
index 4bff081396000e9f0020f45144bb653046f5d8ca..848134e72058161a4782def53fa7df568abd723a 100644
(file)
--- 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;
}