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>
This commit is contained in:
chenqiwu 2020-02-07 17:46:40 +08:00 коммит произвёл Kees Cook
Родитель 8a57d6d4dd
Коммит e030b80ff4
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -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();
} }
} }