All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-nonmm-stable] ipc-mqueue-remove-unnecessary-conditionals.patch removed from -mm tree
@ 2022-10-03 21:22 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-10-03 21:22 UTC (permalink / raw)
  To: mm-commits, roman.gushchin, jingyuwang_vip, akpm


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 <jingyuwang_vip@163.com>
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().

Link: https://lkml.kernel.org/r/20220908185452.76590-1-jingyuwang_vip@163.com
Signed-off-by: Jingyu Wang <jingyuwang_vip@163.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 ipc/mqueue.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/ipc/mqueue.c~ipc-mqueue-remove-unnecessary-conditionals
+++ a/ipc/mqueue.c
@@ -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 jingyuwang_vip@163.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-03 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 21:22 [merged mm-nonmm-stable] ipc-mqueue-remove-unnecessary-conditionals.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.