Browse Source

affs: do not zero ->i_op

it is already set to empty table and should never be NULL

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 16 năm trước cách đây
mục cha
commit
c765d47903
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      fs/affs/inode.c

+ 1 - 2
fs/affs/inode.c

@@ -119,8 +119,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino)
 		goto bad_inode;
 #else
 		inode->i_mode |= S_IFDIR;
-		inode->i_op = NULL;
-		inode->i_fop = NULL;
+		/* ... and leave ->i_op and ->i_fop pointing to empty */
 		break;
 #endif
 	case ST_LINKFILE: