diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-16 09:46:55 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-03 10:34:27 -0400 |
| commit | c9c2c27d7ceca8c2856c5008f2002bddb384f518 (patch) | |
| tree | cafa65120e2e5d80ef78d1bcf475bd2359b56de3 /include/linux/debugfs.h | |
| parent | 36b7ee4dce9e519cf87917eccbaabb53638fdf03 (diff) | |
debugfs: make debugfs_create_u32_array() return void
The single user of debugfs_create_u32_array() does not care about the
return value of it, so make it return void as there is no need to do
anything with the return value.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 3b0ba54cc4d5..58424eb3b329 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -133,9 +133,8 @@ struct dentry *debugfs_create_regset32(const char *name, umode_t mode, | |||
| 133 | void debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs, | 133 | void debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs, |
| 134 | int nregs, void __iomem *base, char *prefix); | 134 | int nregs, void __iomem *base, char *prefix); |
| 135 | 135 | ||
| 136 | struct dentry *debugfs_create_u32_array(const char *name, umode_t mode, | 136 | void debugfs_create_u32_array(const char *name, umode_t mode, |
| 137 | struct dentry *parent, | 137 | struct dentry *parent, u32 *array, u32 elements); |
| 138 | u32 *array, u32 elements); | ||
| 139 | 138 | ||
| 140 | struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, | 139 | struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, |
| 141 | struct dentry *parent, | 140 | struct dentry *parent, |
| @@ -353,11 +352,10 @@ static inline bool debugfs_initialized(void) | |||
| 353 | return false; | 352 | return false; |
| 354 | } | 353 | } |
| 355 | 354 | ||
| 356 | static inline struct dentry *debugfs_create_u32_array(const char *name, umode_t mode, | 355 | static inline void debugfs_create_u32_array(const char *name, umode_t mode, |
| 357 | struct dentry *parent, | 356 | struct dentry *parent, u32 *array, |
| 358 | u32 *array, u32 elements) | 357 | u32 elements) |
| 359 | { | 358 | { |
| 360 | return ERR_PTR(-ENODEV); | ||
| 361 | } | 359 | } |
| 362 | 360 | ||
| 363 | static inline struct dentry *debugfs_create_devm_seqfile(struct device *dev, | 361 | static inline struct dentry *debugfs_create_devm_seqfile(struct device *dev, |
