diff mbox series

[4.4,06/20] crypto: talitos - Delete an error message for a failed memory allocation in talitos_edesc_alloc()

Message ID 20200402191856.789622-6-lee.jones@linaro.org
State New
Headers show
Series [4.4,01/20] clk: qcom: rcg: Return failure for RCG update | expand

Commit Message

Lee Jones April 2, 2020, 7:18 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>

[ Upstream commit 0108aab1161532c9b62a0d05b8115f4d0b529831 ]

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>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/crypto/talitos.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 1c8857e7db894..f3d0a33f4ddb4 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1287,7 +1287,6 @@  static struct talitos_edesc *talitos_edesc_alloc(struct device *dev,
 		if (iv_dma)
 			dma_unmap_single(dev, iv_dma, ivsize, DMA_TO_DEVICE);
 
-		dev_err(dev, "could not allocate edescriptor\n");
 		return ERR_PTR(-ENOMEM);
 	}