l2tp: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Jun 2019 07:04:38 +0000 (09:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2019 15:45:05 +0000 (08:45 -0700)
commit3adcfa4478661463dd8eb91f3717c5bdd77633eb
treee1b44d00e899a9823d98f7678a3874d6ad0b5325
parent0b55b630352e259b7bf5de3980393afdab6c2f4a
l2tp: 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.

Also, there is no need to store the individual debugfs file name, just
remove the whole directory all at once, saving a local variable.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Guillaume Nault <g.nault@alphalink.fr>
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_debugfs.c