From: Markus Elfring Date: Wed, 16 Aug 2017 20:35:24 +0000 (+0200) Subject: lockd: Delete an error message for a failed memory allocation in reclaimer() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58a69893a9bf6833a79dae801da78e1d4f46f0a2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Trond Myklebust --- 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);