projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
102e67d
)
dlm: Delete an error message for a failed memory allocation in dlm_recover_waiters_pre()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 6 May 2017 06:55:43 +0000
(08:55 +0200)
committer
David Teigland
<teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000
(11:23 -0500)
Omit an extra message for a memory allocation failure in this function.
Link:
http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dlm/lock.c
b/fs/dlm/lock.c
index ffadb817ad39a1c12f638e02a435f87a1e6c7562..d4aaddec1b16207c6ae394075b31110b8cead77d 100644
(file)
--- a/
fs/dlm/lock.c
+++ b/
fs/dlm/lock.c
@@
-5120,10
+5120,8
@@
void dlm_recover_waiters_pre(struct dlm_ls *ls)
int dir_nodeid;
ms_stub = kmalloc(sizeof(*ms_stub), GFP_KERNEL);
- if (!ms_stub) {
- log_error(ls, "dlm_recover_waiters_pre no mem");
+ if (!ms_stub)
return;
- }
mutex_lock(&ls->ls_waiters_mutex);