Commit 3fbb6b78 authored by Yubo Feng's avatar Yubo Feng Committed by Andrew Morton
Browse files

fatfs: remove redundant judgment

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

Link: https://lkml.kernel.org/r/1648265418-76563-1-git-send-email-fengyubo3@huawei.com


Signed-off-by: default avatarYubo Feng <fengyubo3@huawei.com>
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Acked-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 7374fa33
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1889,9 +1889,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
		fat_msg(sb, KERN_INFO, "Can't find a valid FAT filesystem");

out_fail:
	if (fsinfo_inode)
	iput(fsinfo_inode);
	if (fat_inode)
	iput(fat_inode);
	unload_nls(sbi->nls_io);
	unload_nls(sbi->nls_disk);