summaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2014-04-16 11:56:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 14:29:56 -0700
commit78e1da627040ca49c41b456db707342ef210ae0f (patch)
tree931d57a86ab996eda70530bdeabf0050994a6a64 /include/linux/sysfs.h
parent451ef1caa8698511bb7766344ccec9f08d5d294b (diff)
downloadblackbird-op-linux-78e1da627040ca49c41b456db707342ef210ae0f.tar.gz
blackbird-op-linux-78e1da627040ca49c41b456db707342ef210ae0f.zip
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>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 5ffaa3443712..f97d0dbb59fa 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -437,7 +437,7 @@ static inline int __must_check sysfs_create_file(struct kobject *kobj,
static inline void sysfs_remove_file(struct kobject *kobj,
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,
OpenPOWER on IntegriCloud