From: Sasha Levin <sasha.levin@oracle.com>
Date: Thu, 20 Dec 2012 19:11:22 +0000 (-0500)
Subject: debugfs: remove redundant initialization of dentry
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1884bd4b1461d16d10ab4ab4d19725b4e0717f7a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git

debugfs: remove redundant initialization of dentry

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>
---

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 153bb1e42e63..d329f9c55753 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -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)) {