aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hwpoison-inject.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hwpoison-inject.c')
-rw-r--r--mm/hwpoison-inject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
index 95487c71cad5..329caf56df22 100644
--- a/mm/hwpoison-inject.c
+++ b/mm/hwpoison-inject.c
@@ -72,8 +72,7 @@ DEFINE_SIMPLE_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");
72 72
73static void pfn_inject_exit(void) 73static void pfn_inject_exit(void)
74{ 74{
75 if (hwpoison_dir) 75 debugfs_remove_recursive(hwpoison_dir);
76 debugfs_remove_recursive(hwpoison_dir);
77} 76}
78 77
79static int pfn_inject_init(void) 78static int pfn_inject_init(void)