Skip to content

Commit

Permalink
affs: do not zero ->i_op
Browse files Browse the repository at this point in the history
it is already set to empty table and should never be NULL

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 5, 2009
1 parent 7f5ff76 commit c765d47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/affs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c765d47

Please sign in to comment.