Skip to content

Commit

Permalink
lockd: Delete an error message for a failed memory allocation in recl…
Browse files Browse the repository at this point in the history
…aimer()

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>
  • Loading branch information
Markus Elfring authored and Trond Myklebust committed Sep 6, 2017
1 parent 03c6f7d commit 58a6989
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/lockd/clntlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 58a6989

Please sign in to comment.