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:
Родитель
8a57d6d4dd
Коммит
e030b80ff4
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче