summaryrefslogtreecommitdiffstats
path: root/security/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-01-25 10:50:43 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2010-01-27 04:22:26 +0100
commitef52c75e4b1603f6e6102967ad90118205168eae (patch)
treeabd54af0a688ab20006fa8b51d02a2dd94af4889 /security/inode.c
parentFix failure exits in bfs_fill_super() (diff)
downloadlinux-ef52c75e4b1603f6e6102967ad90118205168eae.tar.xz
linux-ef52c75e4b1603f6e6102967ad90118205168eae.zip
get rid of pointless checks after simple_pin_fs()
if we'd just got success from it, vfsmount won't be NULL Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/inode.c')
-rw-r--r--security/inode.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/security/inode.c b/security/inode.c
index f7496c6a022b..c3a793881d04 100644
--- a/security/inode.c
+++ b/security/inode.c
@@ -156,15 +156,8 @@ static int create_by_name(const char *name, mode_t mode,
* block. A pointer to that is in the struct vfsmount that we
* have around.
*/
- if (!parent ) {
- if (mount && mount->mnt_sb) {
- parent = mount->mnt_sb->s_root;
- }
- }
- if (!parent) {
- pr_debug("securityfs: Ah! can not find a parent!\n");
- return -EFAULT;
- }
+ if (!parent)
+ parent = mount->mnt_sb->s_root;
mutex_lock(&parent->d_inode->i_mutex);
*dentry = lookup_one_len(name, parent, strlen(name));