crypto: bcm - Delete an error message for a failed memory allocation in do_shash()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 14 Feb 2018 21:05:11 +0000 (22:05 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:59 +0000 (22:16 +0800)
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: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/util.c

index d543c010ccd9272b1f856e2c55901c266ec54987..a912c6ad3e850bbe544338032b105de40508b281 100644 (file)
@@ -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;