From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,zhao.xichao@vivo.com,akpm@linux-foundation.org
Subject: [merged mm-nonmm-stable] lib-use-ptr_err_or_zero-to-simplify-code.patch removed from -mm tree
Date: Sat, 13 Sep 2025 17:35:09 -0700 [thread overview]
Message-ID: <20250914003509.D8FF4C4CEEB@smtp.kernel.org> (raw)
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
reply other threads:[~2025-09-14 0:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250914003509.D8FF4C4CEEB@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=mm-commits@vger.kernel.org \
--cc=zhao.xichao@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.