RDMA/hns: Cleanup for debugfs
driver inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/I8LY0D -------------------------------------------------------------------------- The structure member of hns_debugfs_seqfile records the handle of the debugfs file After the debugfs file is created, a value is assigned to the handle. It is originally used to destroy the created debugfs subdirectory when the debugfs file system is uninstalled. Because debugfs_remove_recursive() has been introduced in previous reconstruction, this function only needs to know the root directory of the debugfs file system and can automatically destroy subdirectories recursively. The function of the structure member entry of hns_debugfs_seqfile has been replaced. The deletion is performed here. Fixes: b6643496 ("RDMA/hns: Refactor hns RoCE debugfs") Signed-off-by:wenglianfa <wenglianfa@huawei.com>
Loading
Please sign in to comment