diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-12-04 09:50:55 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-01-05 11:53:07 -0500 |
commit | c765d479037808532310212e9b3fa95760e975f2 (patch) | |
tree | 74c9f5570a9a5477522bdf203067303b2e9ef6d3 | |
parent | 7f5ff766a7babd72fc192125e12ef5570effff4c (diff) | |
download | linux-rpi-c765d479037808532310212e9b3fa95760e975f2.tar.gz linux-rpi-c765d479037808532310212e9b3fa95760e975f2.tar.bz2 linux-rpi-c765d479037808532310212e9b3fa95760e975f2.zip |
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>
-rw-r--r-- | fs/affs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/affs/inode.c b/fs/affs/inode.c index 415d9c67ac16..3c4ec7d864c4 100644 --- a/fs/affs/inode.c +++ b/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: |