diff options
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index b6ac4e6d6e79..c40fb9fdd04c 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -157,11 +157,6 @@ static void sysfs_init_inode(struct sysfs_dirent *sd, struct inode *inode) | |||
157 | 157 | ||
158 | /* initialize inode according to type */ | 158 | /* initialize inode according to type */ |
159 | switch (sysfs_type(sd)) { | 159 | switch (sysfs_type(sd)) { |
160 | case SYSFS_ROOT: | ||
161 | inode->i_op = &sysfs_dir_inode_operations; | ||
162 | inode->i_fop = &sysfs_dir_operations; | ||
163 | inc_nlink(inode); /* directory, account for "." */ | ||
164 | break; | ||
165 | case SYSFS_DIR: | 160 | case SYSFS_DIR: |
166 | inode->i_op = &sysfs_dir_inode_operations; | 161 | inode->i_op = &sysfs_dir_inode_operations; |
167 | inode->i_fop = &sysfs_dir_operations; | 162 | inode->i_fop = &sysfs_dir_operations; |