diff mbox series

[*-next,05/18] sysfs: Remove needless return in void API sysfs_enable_ns()

Message ID 20250221-rmv_return-v1-5-cc8dff275827@quicinc.com (mailing list archive)
State Not Applicable
Headers show
Series Remove weird and needless 'return' for void APIs | expand

Commit Message

Zijun Hu Feb. 21, 2025, 1:02 p.m. UTC
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@quicinc.com>
---
 include/linux/sysfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,