mbox series

[0/2] bna: Fix return value check for debugfs create APIs

Message ID 20241023080921.326-1-thunder.leizhen@huawei.com (mailing list archive)
Headers show
Series bna: Fix return value check for debugfs create APIs | expand

Message

Leizhen (ThunderTown) Oct. 23, 2024, 8:09 a.m. UTC
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: Fix return value check 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   | 34 ++++++++-----------
 2 files changed, 14 insertions(+), 21 deletions(-)