lockd: Delete an error message for a failed memory allocation in reclaimer()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 16 Aug 2017 20:35:24 +0000 (22:35 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 6 Sep 2017 16:33:56 +0000 (12:33 -0400)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/lockd/clntlock.c

index 27d577dbe51a48f21950a63758e76783fed67eca..96c1d14c18f12fd6d61e74344c6d28d3e6cf2730 100644 (file)
@@ -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);