mirror of https://gitee.com/openkylin/linux.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>
This commit is contained in:
parent
2202d4e81b
commit
1884bd4b14
|
@ -322,7 +322,6 @@ static struct dentry *__create_file(const char *name, umode_t mode,
|
||||||
if (!parent)
|
if (!parent)
|
||||||
parent = debugfs_mount->mnt_root;
|
parent = debugfs_mount->mnt_root;
|
||||||
|
|
||||||
dentry = NULL;
|
|
||||||
mutex_lock(&parent->d_inode->i_mutex);
|
mutex_lock(&parent->d_inode->i_mutex);
|
||||||
dentry = lookup_one_len(name, parent, strlen(name));
|
dentry = lookup_one_len(name, parent, strlen(name));
|
||||||
if (!IS_ERR(dentry)) {
|
if (!IS_ERR(dentry)) {
|
||||||
|
|
Loading…
Reference in New Issue