mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-10 03:20:30 +01:00
pstore/ram: remove unnecessary ramoops_unregister_dummy()
Remove unnecessary ramoops_unregister_dummy() if ramoops platform device register failed. Signed-off-by: chenqiwu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
This commit is contained in:
1 parent
8a57d6d4dd
commit
e030b80ff4
1 file changed
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user