From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Thu, 17 Aug 2017 14:33:35 +0000 Subject: [PATCH 1/2] lockd: Delete an error message for a failed memory allocation in reclaimer() Message-Id: <350de6ea-41ff-1b86-ff50-26c677447f00@users.sourceforge.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-nfs@vger.kernel.org, Anna Schumaker , Benjamin Coddington , Christoph Hellwig , Colin Ian King , "J. Bruce Fields" , Jeff Layton , Trond Myklebust Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Wed, 16 Aug 2017 22:35:24 +0200 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 --- fs/lockd/clntlock.c | 6 +----- 1 file changed, 1 insertion(+), 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) 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); -- 2.14.0