From: Markus Elfring Date: Mon, 12 Mar 2018 13:18:23 +0000 (+0100) Subject: crypto: talitos - Delete an error message for a failed memory allocation in talitos_e... X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0108aab1161532c9b62a0d05b8115f4d0b529831;p=linux.git crypto: talitos - Delete an error message for a failed memory allocation in talitos_edesc_alloc() 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 Reviewed-by: Christophe Leroy Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 447cb8b1b16a7..9a9788d7d5a8e 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1420,7 +1420,6 @@ static struct talitos_edesc *talitos_edesc_alloc(struct device *dev, edesc = kmalloc(alloc_len, GFP_DMA | flags); if (!edesc) { - dev_err(dev, "could not allocate edescriptor\n"); err = ERR_PTR(-ENOMEM); goto error_sg; }