aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-16 16:35:24 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-09-06 12:33:56 -0400
commit58a69893a9bf6833a79dae801da78e1d4f46f0a2 (patch)
treeabba6e23cf3f7dbc80023807d1e37b97f16f466a
parent03c6f7d64ac9c0a37cca91392ac4be8993a8f53d (diff)
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r--fs/lockd/clntlock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c
index 27d577dbe51a..96c1d14c18f1 100644
--- a/fs/lockd/clntlock.c
+++ b/fs/lockd/clntlock.c
@@ -235,12 +235,8 @@ reclaimer(void *ptr)
235 struct net *net = host->net; 235 struct net *net = host->net;
236 236
237 req = kmalloc(sizeof(*req), GFP_KERNEL); 237 req = kmalloc(sizeof(*req), GFP_KERNEL);
238 if (!req) { 238 if (!req)
239 printk(KERN_ERR "lockd: reclaimer unable to alloc memory."
240 " Locks for %s won't be reclaimed!\n",
241 host->h_name);
242 return 0; 239 return 0;
243 }
244 240
245 allow_signal(SIGKILL); 241 allow_signal(SIGKILL);
246 242