projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f5ff76
)
affs: do not zero ->i_op
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 4 Dec 2008 14:50:55 +0000
(09:50 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 5 Jan 2009 16:53:07 +0000
(11:53 -0500)
it is already set to empty table and should never be NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/affs/inode.c
b/fs/affs/inode.c
index 415d9c67ac1651b17449614221b81ecda5f431fc..3c4ec7d864c405606f93b8afe0f2963639208e29 100644
(file)
--- 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: