[PATCH *-next 05/18] sysfs: Remove needless return in void API sysfs_enable_ns()
From: Zijun Hu
Date: Fri Feb 21 2025 - 08:11:38 EST
Remove needless 'return' in void API sysfs_enable_ns() since
both the API and kernfs_enable_ns() are void functions.
Signed-off-by: Zijun Hu <quic_zijuhu@xxxxxxxxxxx>
---
include/linux/sysfs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 18f7e1fd093c..ad5015876c70 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -491,7 +491,7 @@ int __must_check sysfs_init(void);
static inline void sysfs_enable_ns(struct kernfs_node *kn)
{
- return kernfs_enable_ns(kn);
+ kernfs_enable_ns(kn);
}
int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
--
2.34.1