* [PATCH] sysfs.h: don't return a void-valued expression in sysfs_remove_file
@ 2014-04-16 9:56 Simon Wunderlich
0 siblings, 0 replies; only message in thread
From: Simon Wunderlich @ 2014-04-16 9:56 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Simon Wunderlich
Sparse was complaining about that:
include/linux/sysfs.h:432:9: warning: returning void-valued expression
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
include/linux/sysfs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 084354b..d451ec5 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -446,7 +446,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,
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-16 10:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 9:56 [PATCH] sysfs.h: don't return a void-valued expression in sysfs_remove_file Simon Wunderlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®