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 | |
parent | 9fd714cd7f4676e8ff3f840911a8d64cacbeab8b (diff) | |
download | linux-053cf51040ed0ebc56c1b58453ad502dc4d0927b.tar.bz2 |
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')
0 files changed, 0 insertions, 0 deletions