projects
/
platform
/
kernel
/
linux-rpi3.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
|
history
diff --git
a/fs/dlm/lock.c
b/fs/dlm/lock.c
index
ffadb81
..
d4aadde
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);