pstore: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jun 2019 15:20:33 +0000 (17:20 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 9 Jul 2019 04:04:42 +0000 (21:04 -0700)
commitfa1af7583e8012c471ee45d5b1703123fe45a9f3
tree32fcbf0ce499a7c82d1d23d5f94c8c99bf6d3594
parent1614e92179abe91283fc397c37f6244fe0019072
pstore: 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: Kees Cook <keescook@chromium.org>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ftrace.c