diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-12 11:58:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-18 13:47:24 +0200 |
commit | 053cf51040ed0ebc56c1b58453ad502dc4d0927b (patch) | |
tree | 40e8117708017d79d93c2093ccef4b0165d8c269 /drivers/misc/mic/cosm/cosm_debugfs.c | |
parent | lib: dynamic_debug: no need to check return value of debugfs_create functions (diff) | |
download | linux-053cf51040ed0ebc56c1b58453ad502dc4d0927b.tar.xz linux-053cf51040ed0ebc56c1b58453ad502dc4d0927b.zip |
fault-inject: clean up debugfs file creation logic
There is no need to check the return value of a debugfs_create_file
call, a caller should never change what they do depending on if debugfs
is working properly or not, so remove the checks, simplifying the logic
in the file a lot.
Also fix up the error check for debugfs_create_dir() which was not
returning NULL for an error, but rather a error pointer.
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mic/cosm/cosm_debugfs.c')
0 files changed, 0 insertions, 0 deletions