Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2ea2181 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

mm/hwpoison-inject.c: remove unnecessary null test before debugfs_remove_recursive



Fix checkpatch warning:
  "WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required"

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Acked-by: default avatarNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cc7452b6
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -72,7 +72,6 @@ DEFINE_SIMPLE_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");


static void pfn_inject_exit(void)
static void pfn_inject_exit(void)
{
{
	if (hwpoison_dir)
	debugfs_remove_recursive(hwpoison_dir);
	debugfs_remove_recursive(hwpoison_dir);
}
}