Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58a69893 authored by Markus Elfring's avatar Markus Elfring Committed by Trond Myklebust
Browse files

lockd: Delete an error message for a failed memory allocation in reclaimer()



Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 03c6f7d6
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -235,12 +235,8 @@ reclaimer(void *ptr)
	struct net *net = host->net;

	req = kmalloc(sizeof(*req), GFP_KERNEL);
	if (!req) {
		printk(KERN_ERR "lockd: reclaimer unable to alloc memory."
				" Locks for %s won't be reclaimed!\n",
				host->h_name);
	if (!req)
		return 0;
	}

	allow_signal(SIGKILL);