diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-29 17:30:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-31 12:54:21 +0200 |
commit | 8a1ef171ffc3de16d4f34e03a2b8c296771f7015 (patch) | |
tree | 51acfda55aaab7cde1f0a1e67d109008c05f6a23 /drivers/usb/musb/musb_debug.h | |
parent | a941fc3957113df977e7396c2cf1679e87a65555 (diff) | |
download | linux-8a1ef171ffc3de16d4f34e03a2b8c296771f7015.tar.gz linux-8a1ef171ffc3de16d4f34e03a2b8c296771f7015.tar.bz2 linux-8a1ef171ffc3de16d4f34e03a2b8c296771f7015.zip |
USB: musb: clean up debugfs file and directory creation
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 of this, lots of init functions do not need to have return
values, so this cleans up a lot of unused error handling code that never
could have triggered in the past.
Cc: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_debug.h')
-rw-r--r-- | drivers/usb/musb/musb_debug.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h index 5e0f079dde21..c444a80fe1da 100644 --- a/drivers/usb/musb/musb_debug.h +++ b/drivers/usb/musb/musb_debug.h @@ -20,12 +20,11 @@ void musb_dbg(struct musb *musb, const char *fmt, ...); #ifdef CONFIG_DEBUG_FS -int musb_init_debugfs(struct musb *musb); +void musb_init_debugfs(struct musb *musb); void musb_exit_debugfs(struct musb *musb); #else -static inline int musb_init_debugfs(struct musb *musb) +static inline void musb_init_debugfs(struct musb *musb) { - return 0; } static inline void musb_exit_debugfs(struct musb *musb) { |