dlm: Delete an error message for a failed memory allocation in dlm_recover_waiters_pre()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 06:55:43 +0000 (08:55 +0200)
committerDavid 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

index ffadb817ad39a1c12f638e02a435f87a1e6c7562..d4aaddec1b16207c6ae394075b31110b8cead77d 100644 (file)
@@ -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);