summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorchenqiwu <chenqiwu@xiaomi.com>2020-02-07 17:46:40 +0800
committerKees Cook <keescook@chromium.org>2020-02-25 11:15:53 -0800
commite030b80ff4a587ba223eee8ac06df214483dba25 (patch)
tree84f16688a8918f95fb3fcbce8305d21fbbc17cfb /fs/pstore
parent8a57d6d4ddfa41c49014e20493152c41a38fcbf8 (diff)
downloadlinux-e030b80ff4a587ba223eee8ac06df214483dba25.tar.gz
linux-e030b80ff4a587ba223eee8ac06df214483dba25.tar.bz2
linux-e030b80ff4a587ba223eee8ac06df214483dba25.zip
pstore/ram: remove unnecessary ramoops_unregister_dummy()
Remove unnecessary ramoops_unregister_dummy() if ramoops platform device register failed. Signed-off-by: chenqiwu <chenqiwu@xiaomi.com> Link: https://lore.kernel.org/r/1581068800-13817-2-git-send-email-qiwuchen55@gmail.com Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 013486b5125e..795622190c01 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -963,7 +963,6 @@ static void __init ramoops_register_dummy(void)
pr_info("could not create platform device: %ld\n",
PTR_ERR(dummy));
dummy = NULL;
- ramoops_unregister_dummy();
}
}