Skip to contentSkip to conversation

ipc-mqueue-remove-unnecessary-conditionals.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 3, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ipc: mqueue: remove unnecessary conditionals
has been removed from the -mm tree. Its filename was
ipc-mqueue-remove-unnecessary-conditionals.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: Jingyu Wang <[email protected]>
Subject: ipc: mqueue: remove unnecessary conditionals
Date: Fri, 9 Sep 2022 02:54:52 +0800

iput() already handles null and non-null parameters, so there is no need to use if().

---

 ipc/mqueue.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
ipc/mqueue.c renamed from ipc/mqueue.c~ipc-mqueue-remove-unnecessary-conditionals +1 -2
@@ -986,8 +986,7 @@ SYSCALL_DEFINE1(mq_unlink, const char __
 
 out_unlock:
 	inode_unlock(d_inode(mnt->mnt_root));
-	if (inode)
-		iput(inode);
+	iput(inode);
 	mnt_drop_write(mnt);
 out_name:
 	putname(name);

_

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