mbox series

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

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

Message

Zhen Lei Oct. 28, 2024, 2:09 a.m. UTC
v2 --> v3:
1. Keep line wrapping <= 80 columns wide.
2. Add Reviewed-by: Simon Horman <horms@kernel.org>

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   | 31 +++----------------
 2 files changed, 5 insertions(+), 27 deletions(-)