Skip to contentSkip to conversation

fs-qnx6-delete-unnecessary-checks-before-brelse.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 12, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: fs/qnx6: delete unnecessary checks before brelse()
has been removed from the -mm tree. Its filename was
fs-qnx6-delete-unnecessary-checks-before-brelse.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: Minghao Chi <[email protected]>
Subject: fs/qnx6: delete unnecessary checks before brelse()
Date: Fri, 19 Aug 2022 08:18:19 +0000

brelse() tests whether its argument is NULL and then returns immediately. Thus remove the tests which are not needed around the shown calls.

---

 fs/qnx6/inode.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
fs/qnx6/inode.c renamed from fs/qnx6/inode.c~fs-qnx6-delete-unnecessary-checks-before-brelse +2 -4
@@ -470,10 +470,8 @@ out2:
 out1:
 	iput(sbi->inodes);
 out:
-	if (bh1)
-		brelse(bh1);
-	if (bh2)
-		brelse(bh2);
+	brelse(bh1);
+	brelse(bh2);
 outnobh:
 	kfree(qs);
 	s->s_fs_info = NULL;

_

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