debugfs: remove redundant initialization of dentry
authorSasha Levin <sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:22 +0000 (14:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 21:02:08 +0000 (13:02 -0800)
We already initialize it to NULL when declaring it, no need to do
that twice.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/inode.c

index 153bb1e42e631e07b41c5d87d82fd660388ed22e..d329f9c5575398f0977b715cc8eca7c23c30140d 100644 (file)
@@ -322,7 +322,6 @@ static struct dentry *__create_file(const char *name, umode_t mode,
        if (!parent)
                parent = debugfs_mount->mnt_root;
 
-       dentry = NULL;
        mutex_lock(&parent->d_inode->i_mutex);
        dentry = lookup_one_len(name, parent, strlen(name));
        if (!IS_ERR(dentry)) {