netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] bna: Remove error checking for debugfs create APIs
@ 2024-10-26  3:47 Zhen Lei
  2024-10-26  3:47 ` [PATCH v2 1/2] " Zhen Lei
  2024-10-26  3:48 ` [PATCH v2 2/2] bna: Remove field bnad_dentry_files[] in struct bnad Zhen Lei
  0 siblings, 2 replies; 6+ messages in thread
From: Zhen Lei @ 2024-10-26  3:47 UTC (permalink / raw)
  To: Rasesh Mody, Sudarsana Kalluru, GR-Linux-NIC-Dev, Andrew Lunn,
	David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, netdev
  Cc: Zhen Lei

v1 --> v2:
Remove error checking for debugfs_create_file() instead of fixing it.

v1:
1. Fix the incorrect return value check for debugfs_create_dir() and
   debugfs_create_file(), which returns ERR_PTR(-ERROR) instead of NULL
   when it fails.
2. Remove field bnad_dentry_files[] in struct bnad. When a directory is
   deleted, files in the directory are automatically deleted. Therefore,
   there is need to record these files.

Zhen Lei (2):
  bna: Remove error checking for debugfs create APIs
  bna: Remove field bnad_dentry_files[] in struct bnad

 drivers/net/ethernet/brocade/bna/bnad.h       |  1 -
 .../net/ethernet/brocade/bna/bnad_debugfs.c   | 32 ++-----------------
 2 files changed, 3 insertions(+), 30 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-28  1:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-26  3:47 [PATCH v2 0/2] bna: Remove error checking for debugfs create APIs Zhen Lei
2024-10-26  3:47 ` [PATCH v2 1/2] " Zhen Lei
2024-10-26 15:35   ` Simon Horman
2024-10-28  1:56     ` Leizhen (ThunderTown)
2024-10-26  3:48 ` [PATCH v2 2/2] bna: Remove field bnad_dentry_files[] in struct bnad Zhen Lei
2024-10-26 15:36   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).