[PATCH 1/3] mm/zswap.c: remove unused function zswap_debugfs_exit()

From
Miaohe Lin <linmiaohe@huawei.com>
Date
2021-05-22 09:23:33
Also in
lkml
Reply to
Miaohe Lin, 2021-05-22
zswap_debugfs_exit() is unused, remove it.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 mm/zswap.c | 7 -------
 1 file changed, 7 deletions(-)
diff --git a/mm/zswap.c b/mm/zswap.c
index 20763267a219..e93459319fdb 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -1427,18 +1427,11 @@ static int __init zswap_debugfs_init(void)
 
 	return 0;
 }
-
-static void __exit zswap_debugfs_exit(void)
-{
-	debugfs_remove_recursive(zswap_debugfs_root);
-}
 #else
 static int __init zswap_debugfs_init(void)
 {
 	return 0;
 }
-
-static void __exit zswap_debugfs_exit(void) { }
 #endif
 
 /*********************************
-- 
2.23.0

Thread (4 messages) 4 messages, 1 author, last reply 2021-05-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help