fsnotify: remove redundant parameter judgment
Changes
1 files changed · +2 −4
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/notify/fsnotify.c | modified | +2 | −4 | View file |
fs/notify/fsnotify.c
View filediff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c
index 494f653..70a8516 100644
--- a/fs/notify/fsnotify.c
+++ b/fs/notify/fsnotify.c
@@ -70,8 +70,7 @@ static void fsnotify_unmount_inodes(struct super_block *sb)
spin_unlock(&inode->i_lock);
spin_unlock(&sb->s_inode_list_lock);
- if (iput_inode)
- iput(iput_inode);
+ iput(iput_inode);
/* for each watch, send FS_UNMOUNT and then remove it */
fsnotify_inode(inode, FS_UNMOUNT);
@@ -85,8 +84,7 @@ static void fsnotify_unmount_inodes(struct super_block *sb)
}
spin_unlock(&sb->s_inode_list_lock);
- if (iput_inode)
- iput(iput_inode);
+ iput(iput_inode);
}
void fsnotify_sb_delete(struct super_block *sb)