[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230405130747.66006-1-frank.li@vivo.com>
Date: Wed, 5 Apr 2023 21:07:46 +0800
From: Yangtao Li <frank.li@...o.com>
To: Richard Weinberger <richard@....at>
Cc: Yangtao Li <frank.li@...o.com>, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ubifs: remove unnecessary kobject_del()
kobject_put() actually covers kobject removal automatically, which is
single stage removal. So it is safe to kill kobject_del() directly.
Signed-off-by: Yangtao Li <frank.li@...o.com>
---
fs/ubifs/sysfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/ubifs/sysfs.c b/fs/ubifs/sysfs.c
index 1c958148bb87..1ffdc3c9b340 100644
--- a/fs/ubifs/sysfs.c
+++ b/fs/ubifs/sysfs.c
@@ -130,7 +130,6 @@ int ubifs_sysfs_register(struct ubifs_info *c)
void ubifs_sysfs_unregister(struct ubifs_info *c)
{
- kobject_del(&c->kobj);
kobject_put(&c->kobj);
wait_for_completion(&c->kobj_unregister);
--
2.35.1
Powered by blists - more mailing lists