mbox series

[v2,0/2] bna: Remove error checking for debugfs create APIs

Message ID 20241026034800.450-1-thunder.leizhen@huawei.com (mailing list archive)
Headers show
Series bna: Remove error checking for debugfs create APIs | expand

Message

Zhen Lei Oct. 26, 2024, 3:47 a.m. UTC
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(-)