path: root/net/6lowpan/6lowpan_i.h
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-14 09:14:23 +0200
committerMarcel Holtmann <marcel@holtmann.org>2019-07-06 12:50:01 +0200
commitdb50450d096a452ae36dc265575cbff50f0f9f01 (patch)
treee0d21bba8840b7d166635cf50f3de32d8ba33d98 /net/6lowpan/6lowpan_i.h
parent2faa3f15fa2fc13ad1e12a61fc3dbb14b326ba7a (diff)
6lowpan: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Because we don't care if debugfs works or not, this trickles back a bit so we can clean things up by making some functions return void instead of an error value that is never going to fail. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/6lowpan/6lowpan_i.h')
1 files changed, 4 insertions, 12 deletions
diff --git a/net/6lowpan/6lowpan_i.h b/net/6lowpan/6lowpan_i.h
index 53cf446ce2e3..01853cec0209 100644
--- a/net/6lowpan/6lowpan_i.h
+++ b/net/6lowpan/6lowpan_i.h
@@ -18,24 +18,16 @@ extern const struct ndisc_ops lowpan_ndisc_ops;
int addrconf_ifid_802154_6lowpan(u8 *eui, struct net_device *dev);
-int lowpan_dev_debugfs_init(struct net_device *dev);
+void lowpan_dev_debugfs_init(struct net_device *dev);
void lowpan_dev_debugfs_exit(struct net_device *dev);
-int __init lowpan_debugfs_init(void);
+void __init lowpan_debugfs_init(void);
void lowpan_debugfs_exit(void);
-static inline int lowpan_dev_debugfs_init(struct net_device *dev)
- return 0;
+static inline void lowpan_dev_debugfs_init(struct net_device *dev) { }
static inline void lowpan_dev_debugfs_exit(struct net_device *dev) { }
-static inline int __init lowpan_debugfs_init(void)
- return 0;
+static inline void __init lowpan_debugfs_init(void) { }
static inline void lowpan_debugfs_exit(void) { }