]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22b7cf3e6c174f7f6d7fb57752fd7fc59d8baf5f
treee1b44d00e899a9823d98f7678a3874d6ad0b5325
parenta8e61dc3791bcd60aff66f2e069b7fd290072b51
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