提交 78e1da62 编写于 作者: S Simon Wunderlich 提交者: Greg Kroah-Hartman

sysfs.h: don't return a void-valued expression in sysfs_remove_file

Sparse was complaining about that:
include/linux/sysfs.h:432:9: warning: returning void-valued expression
Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 451ef1ca
...@@ -437,7 +437,7 @@ static inline int __must_check sysfs_create_file(struct kobject *kobj, ...@@ -437,7 +437,7 @@ static inline int __must_check sysfs_create_file(struct kobject *kobj,
static inline void sysfs_remove_file(struct kobject *kobj, static inline void sysfs_remove_file(struct kobject *kobj,
const struct attribute *attr) const struct attribute *attr)
{ {
return sysfs_remove_file_ns(kobj, attr, NULL); sysfs_remove_file_ns(kobj, attr, NULL);
} }
static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册