]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
configfs: use PTR_ERR_OR_ZERO() to simplify code
authorXichao Zhao <zhao.xichao@vivo.com>
Tue, 12 Aug 2025 08:27:09 +0000 (16:27 +0800)
committerAndreas Hindborg <a.hindborg@kernel.org>
Thu, 4 Sep 2025 14:49:17 +0000 (16:49 +0200)
commit462272dd734b568f0190d01e24f5257c1a763fae
treea411b43de7f06766d7abf0a6a82400621c67a567
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0
configfs: use PTR_ERR_OR_ZERO() to simplify code

Use the standard error pointer macro to shorten the code and simplify.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20250812082709.49796-1-zhao.xichao@vivo.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
fs/configfs/dir.c