Skip to content

Commit

Permalink
debugfs: remove redundant initialization of dentry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Levin authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 2202d4e commit 1884bd4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1884bd4

Please sign in to comment.