]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bna: Remove field bnad_dentry_files[] in struct bnad
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 28 Oct 2024 02:09:43 +0000 (10:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 31 Oct 2024 01:51:52 +0000 (18:51 -0700)
commit67826db318dd6d105b60d4e380e97e36280b9681
tree5a51729648c63107102f60560e7266c6eedae5da
parentbf8207ec8c3092555365036e28d227e997864799
bna: Remove field bnad_dentry_files[] in struct bnad

Function debugfs_remove() recursively removes a directory, include all
files created by debugfs_create_file(). Therefore, there is no need to
explicitly record each file with member ->bnad_dentry_files[] and
explicitly delete them at the end. Remove field bnad_dentry_files[] and
its related processing codes for simplification.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241028020943.507-3-thunder.leizhen@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/brocade/bna/bnad.h
drivers/net/ethernet/brocade/bna/bnad_debugfs.c