Commit c765d479037808532310212e9b3fa95760e975f2

Authored by Al Viro
1 parent 7f5ff766a7

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -119,8 +119,7 @@
119 119 goto bad_inode;
120 120 #else
121 121 inode->i_mode |= S_IFDIR;
122   - inode->i_op = NULL;
123   - inode->i_fop = NULL;
  122 + /* ... and leave ->i_op and ->i_fop pointing to empty */
124 123 break;
125 124 #endif
126 125 case ST_LINKFILE: