Skip to contentSkip to conversation

fatfs-remove-redundant-judgment.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 10, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: fatfs: remove redundant judgment
has been removed from the -mm tree. Its filename was
fatfs-remove-redundant-judgment.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Yubo Feng <[email protected]>
Subject: fatfs: remove redundant judgment

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

---

 fs/fat/inode.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
fs/fat/inode.c renamed from fs/fat/inode.c~fatfs-remove-redundant-judgment +2 -4
@@ -1889,10 +1889,8 @@ out_invalid:
 		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);
+	iput(fsinfo_inode);
+	iput(fat_inode);
 	unload_nls(sbi->nls_io);
 	unload_nls(sbi->nls_disk);
 	fat_reset_iocharset(&sbi->options);

_

Patches currently in -mm which might be from [email protected] are