Commit 72e8d3f8 authored by Markus Elfring's avatar Markus Elfring Committed by Herbert Xu
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5471f2e2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;