diff options
author | chenqiwu <chenqiwu@xiaomi.com> | 2020-02-07 17:46:40 +0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-02-25 11:15:53 -0800 |
commit | e030b80ff4a587ba223eee8ac06df214483dba25 (patch) | |
tree | 84f16688a8918f95fb3fcbce8305d21fbbc17cfb /fs | |
parent | 8a57d6d4ddfa41c49014e20493152c41a38fcbf8 (diff) | |
download | linux-e030b80ff4a587ba223eee8ac06df214483dba25.tar.gz linux-e030b80ff4a587ba223eee8ac06df214483dba25.tar.bz2 linux-e030b80ff4a587ba223eee8ac06df214483dba25.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/pstore/ram.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 013486b5125e..795622190c01 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(); } } |