diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-01-25 12:50:43 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-01-27 06:22:26 +0300 |
commit | ef52c75e4b1603f6e6102967ad90118205168eae (patch) | |
tree | abd54af0a688ab20006fa8b51d02a2dd94af4889 /fs | |
parent | 5998649f779b7148a8a0c10c46cfa99e27d34dfe (diff) | |
download | linux-ef52c75e4b1603f6e6102967ad90118205168eae.tar.xz |
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 'fs')
-rw-r--r-- | fs/debugfs/inode.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index b486169f42bf..274ac865bae8 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -160,15 +160,8 @@ static int debugfs_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 (debugfs_mount && debugfs_mount->mnt_sb) { - parent = debugfs_mount->mnt_sb->s_root; - } - } - if (!parent) { - pr_debug("debugfs: Ah! can not find a parent!\n"); - return -EFAULT; - } + if (!parent) + parent = debugfs_mount->mnt_sb->s_root; *dentry = NULL; mutex_lock(&parent->d_inode->i_mutex); |