Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/debugsfs: remove unnecessary inode->i_private initialization

inode->i_private is promised to be NULL on allocation, no need to set it
explicitly.

Signed-off-by: Yan Hong <clouds.yan@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yan Hong and committed by
Greg Kroah-Hartman
7dd2517c d6ff8551

-1
-1
fs/debugfs/inode.c
··· 59 59 case S_IFDIR: 60 60 inode->i_op = &simple_dir_inode_operations; 61 61 inode->i_fop = &simple_dir_operations; 62 - inode->i_private = NULL; 63 62 64 63 /* directory inodes start off with i_nlink == 2 65 64 * (for "." entry) */