Skip to content

Commit 78e1da6

Browse files
simonwunderlichgregkh
authored andcommitted
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: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 451ef1c commit 78e1da6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/sysfs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static inline int __must_check sysfs_create_file(struct kobject *kobj,
437437
static inline void sysfs_remove_file(struct kobject *kobj,
438438
const struct attribute *attr)
439439
{
440-
return sysfs_remove_file_ns(kobj, attr, NULL);
440+
sysfs_remove_file_ns(kobj, attr, NULL);
441441
}
442442

443443
static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target,

0 commit comments

Comments
 (0)