]> git.baikalelectronics.ru Git - kernel.git/commit
lkdtm: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 18:32:13 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jun 2019 11:37:03 +0000 (13:37 +0200)
commit92fa4b7bbc56c361f7fb4dcefb8c184cb1d52a88
tree46188dd9ed03210e55d271bcdda5ad1007b6e5eb
parentf1b33ec732bdee2d7ad0d92176c78c0ccbad0fe5
lkdtm: no need to check return value of debugfs_create functions

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.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/core.c