* [merged mm-nonmm-stable] lib-use-ptr_err_or_zero-to-simplify-code.patch removed from -mm tree
@ 2025-09-14 0:35 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-09-14 0:35 UTC (permalink / raw)
To: mm-commits, zhao.xichao, akpm
The quilt patch titled
Subject: lib/fault-inject-usercopy.c: use PTR_ERR_OR_ZERO() to simplify code
has been removed from the -mm tree. Its filename was
lib-use-ptr_err_or_zero-to-simplify-code.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: Xichao Zhao <zhao.xichao@vivo.com>
Subject: lib/fault-inject-usercopy.c: use PTR_ERR_OR_ZERO() to simplify code
Date: Tue, 12 Aug 2025 16:40:45 +0800
Use the standard error pointer macro to shorten the code and simplify.
Link: https://lkml.kernel.org/r/20250812084045.64218-1-zhao.xichao@vivo.com
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/fault-inject-usercopy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/lib/fault-inject-usercopy.c~lib-use-ptr_err_or_zero-to-simplify-code
+++ a/lib/fault-inject-usercopy.c
@@ -22,10 +22,8 @@ static int __init fail_usercopy_debugfs(
dir = fault_create_debugfs_attr("fail_usercopy", NULL,
&fail_usercopy.attr);
- if (IS_ERR(dir))
- return PTR_ERR(dir);
- return 0;
+ return PTR_ERR_OR_ZERO(dir);
}
late_initcall(fail_usercopy_debugfs);
_
Patches currently in -mm which might be from zhao.xichao@vivo.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-14 0:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-14 0:35 [merged mm-nonmm-stable] lib-use-ptr_err_or_zero-to-simplify-code.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.