From: Markus Elfring Date: Wed, 14 Feb 2018 21:05:11 +0000 (+0100) Subject: crypto: bcm - Delete an error message for a failed memory allocation in do_shash() X-Git-Tag: v5.15~9126^2~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72e8d3f895946720c9151d4c2c7155cf4a592f48;p=platform%2Fkernel%2Flinux-starfive.git crypto: bcm - Delete an error message for a failed memory allocation in do_shash() 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: Herbert Xu --- diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm/util.c index d543c01..a912c6a 100644 --- a/drivers/crypto/bcm/util.c +++ b/drivers/crypto/bcm/util.c @@ -279,7 +279,6 @@ int do_shash(unsigned char *name, unsigned char *result, sdesc = kmalloc(size, GFP_KERNEL); if (!sdesc) { rc = -ENOMEM; - pr_err("%s: Memory allocation failure\n", __func__); goto do_shash_err; } sdesc->shash.tfm = hash;