summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2019-06-12 11:58:28 +0200
committerGreg Kroah-Hartman2019-06-18 13:47:24 +0200
commit053cf51040ed0ebc56c1b58453ad502dc4d0927b (patch)
tree40e8117708017d79d93c2093ccef4b0165d8c269 /drivers/misc
parentlib: dynamic_debug: no need to check return value of debugfs_create functions (diff)
downloadkernel-qcow2-linux-053cf51040ed0ebc56c1b58453ad502dc4d0927b.tar.gz
kernel-qcow2-linux-053cf51040ed0ebc56c1b58453ad502dc4d0927b.tar.xz
kernel-qcow2-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')
0 files changed, 0 insertions, 0 deletions