Messages in this thread Patch in this message |  | | From | qiwuchen55@gmail ... | Subject | [PATCH 2/2] pstore/ram: remove unnecessary ramoops_unregister_dummy() | Date | Tue, 4 Feb 2020 21:07:14 +0800 |
| |
From: chenqiwu <chenqiwu@xiaomi.com>
Remove unnecessary ramoops_unregister_dummy() if ramoops platform device register failed.
Signed-off-by: chenqiwu <chenqiwu@xiaomi.com> --- fs/pstore/ram.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 013486b..7956221 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(); } } -- 1.9.1
|  |