Commit f92ca72b authored by Bang Li's avatar Bang Li Committed by Jan Kara
Browse files

fsnotify: remove redundant parameter judgment

iput() has already judged the incoming parameter, so there is no need to
repeat the judgment here.

Link: https://lore.kernel.org/r/20220311151240.62045-1-libang.linuxer@gmail.com


Signed-off-by: default avatarBang Li <libang.linuxer@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 04e317ba
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -70,7 +70,6 @@ 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);

		/* for each watch, send FS_UNMOUNT and then remove it */
@@ -85,7 +84,6 @@ static void fsnotify_unmount_inodes(struct super_block *sb)
	}
	spin_unlock(&sb->s_inode_list_lock);

	if (iput_inode)
	iput(iput_inode);
}