Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Simon Wunderlich and committed by
Greg Kroah-Hartman
78e1da62 451ef1ca

+1 -1
+1 -1
include/linux/sysfs.h
··· 437 437 static inline void sysfs_remove_file(struct kobject *kobj, 438 438 const struct attribute *attr) 439 439 { 440 - return sysfs_remove_file_ns(kobj, attr, NULL); 440 + sysfs_remove_file_ns(kobj, attr, NULL); 441 441 } 442 442 443 443 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target,