projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a57d6d
)
pstore/ram: remove unnecessary ramoops_unregister_dummy()
author
chenqiwu
<chenqiwu@xiaomi.com>
Fri, 7 Feb 2020 09:46:40 +0000
(17:46 +0800)
committer
Kees Cook
<keescook@chromium.org>
Tue, 25 Feb 2020 19:15:53 +0000
(11:15 -0800)
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>
fs/pstore/ram.c
patch
|
blob
|
history
diff --git
a/fs/pstore/ram.c
b/fs/pstore/ram.c
index 013486b5125ed78f80f10024c7c1f3d67fe8d647..795622190c01492e4fbd1a05b364d27fc8823003 100644
(file)
--- 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();
}
}