From: Fabian Frederick Date: Wed, 6 Aug 2014 23:06:41 +0000 (-0700) Subject: mm/hwpoison-inject.c: remove unnecessary null test before debugfs_remove_recursive X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c2ea2181db43ced2e5945b9596bb3bb9935ce92e;p=openwrt%2Fstaging%2Fblogic.git 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: Fabian Frederick Acked-by: Naoya Horiguchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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"); static void pfn_inject_exit(void) { - if (hwpoison_dir) - debugfs_remove_recursive(hwpoison_dir); + debugfs_remove_recursive(hwpoison_dir); } static int pfn_inject_init(void)