gfs: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 15:21:51 +0000 (16:21 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 23 Jan 2019 11:30:34 +0000 (12:30 +0100)
commit2abbf9a4d262511999ac11b4ddc8521c9ee72b88
treeb1ec689584229fed8e6df5718c1621abac661f26
parent49a57857aeea06ca831043acbb0fa5e0f50602fd
gfs: 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.

There is no need to save the dentries for the debugfs files, so drop
those variables to save a bit of space and make the code simpler.

Cc: Bob Peterson <rpeterso@redhat.com>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Cc: cluster-devel@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/incore.h
fs/gfs2/main.c