summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 08:59:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 09:01:30 +0100
commit48c9899affd51f7acfc07a3f4d777b6eeb73a451 (patch)
treed688f4dd72022493154103ac16e57d87bca8d854 /drivers/base
parentRevert "devtmpfs: remove return value of devtmpfs_delete_node()" (diff)
downloadlinux-48c9899affd51f7acfc07a3f4d777b6eeb73a451.tar.xz
linux-48c9899affd51f7acfc07a3f4d777b6eeb73a451.zip
Revert "devtmpfs: add debug info to handle()"
This reverts commit 90a9d5ff225267b3376f73c19f21174e3b6d7746 as it is reported to cause boot regressions. Link: https://lore.kernel.org/r/Y+rSXg14z1Myd8Px@dev-arch.thelio-3990X Reported-by: Nathan Chancellor <nathan@kernel.org> Cc: Longlong Xia <xialonglong1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/devtmpfs.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index f273bccd5494..95ebc18ded50 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -389,18 +389,10 @@ static __initdata DECLARE_COMPLETION(setup_done);
static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid,
struct device *dev)
{
- int ret;
-
if (mode)
- ret = handle_create(name, mode, uid, gid, dev);
+ return handle_create(name, mode, uid, gid, dev);
else
- ret = handle_remove(name, dev);
-
- if (ret)
- dev_err(dev, "failed to %s %s, ret = %d\n",
- mode ? "create" : "remove", name, ret);
-
- return ret;
+ return handle_remove(name, dev);
}
static void __noreturn devtmpfs_work_loop(void)