Commit e030b80f authored by chenqiwu's avatar chenqiwu Committed by Kees Cook

pstore/ram: remove unnecessary ramoops_unregister_dummy()

Remove unnecessary ramoops_unregister_dummy() if ramoops
platform device register failed.
Signed-off-by: default avatarchenqiwu <chenqiwu@xiaomi.com>
Link: https://lore.kernel.org/r/1581068800-13817-2-git-send-email-qiwuchen55@gmail.comSigned-off-by: default avatarKees Cook <keescook@chromium.org>
parent 8a57d6d4
...@@ -963,7 +963,6 @@ static void __init ramoops_register_dummy(void) ...@@ -963,7 +963,6 @@ static void __init ramoops_register_dummy(void)
pr_info("could not create platform device: %ld\n", pr_info("could not create platform device: %ld\n",
PTR_ERR(dummy)); PTR_ERR(dummy));
dummy = NULL; dummy = NULL;
ramoops_unregister_dummy();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment