From patchwork Mon Mar 12 13:32:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10276335 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3626E601A0 for ; Mon, 12 Mar 2018 13:33:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26EFF28DD9 for ; Mon, 12 Mar 2018 13:33:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BBCC28DDD; Mon, 12 Mar 2018 13:33:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3CA928DD9 for ; Mon, 12 Mar 2018 13:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbeCLNdM (ORCPT ); Mon, 12 Mar 2018 09:33:12 -0400 Received: from mout.web.de ([212.227.15.3]:58085 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbeCLNdL (ORCPT ); Mon, 12 Mar 2018 09:33:11 -0400 Received: from [192.168.1.2] ([92.228.18.148]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M1WtV-1egC4C0Pgv-00tQ0Z; Mon, 12 Mar 2018 14:33:01 +0100 Subject: [PATCH 2/2] crypto: talitos: Delete an error message for a failed memory allocation in talitos_edesc_alloc() From: SF Markus Elfring To: linux-crypto@vger.kernel.org, Christophe Leroy , "David S. Miller" , Herbert Xu Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <13bfdc03-1dee-2f1c-da8d-1e452f10c850@users.sourceforge.net> Date: Mon, 12 Mar 2018 14:32:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:yTX6GjMwDCqBcfVqXEbVb8OHo09bJKBHeSSFSRpIUVA6KEGkt0S 5TlAxecvx+1mSOtsxHazq11XR9HNNM4fS8C+A8wxmDXVVxagTU2qEFZqwNqYpPgjJ4fT1Z7 7WuYQg6E3RmNQkyJIjqCpIRF+DbC/Ys7TCHG8ncOcvdUlQPVkt4ksd0AQllMgk6tVc+1z19 pAkmcd8rNqetmKp0FlO2w== X-UI-Out-Filterresults: notjunk:1; V01:K0:0XbXKteoV0o=:2lxslNx7yYOQ7NR7M5u+or U5KkZXSlbgqxBHnEN1ZQzXg3mmgc0ibdDqNTLUw5yN5N0+mvE96JQ0OChsNifc3aKQOJvr9Ru llhPPuq/4lkzu3FCDtKeN8WCK1b/0z1gXEFC2tluOROOKHSEPbZDDPZ88vj4CQ1Il3+12Ybds BPjM8AsaSMbMppVSm6sp5eJHcww/vHs+9VpbQ+UIXPMO/fGVeLs3z8sMcBXhj3vex9uvAELw9 vzxTVKV5ucZx9Z7hjLpCJNrb5fG7jbx3vPM3O3U7aWSrLYArPHw2ZoAuB11evNsg/h69XtOta lxyPvmqZ0X/h5RIyw4+IQazPEC9qw0ISu/+Td6BeLJ9/geGsGp32huFwRhTUFY3QjPturl+8u Fq6RCdFTDm6gUVLPsKREh/slWE8Xv5SiOQ2KdUwbGVIpc5W+FYWuAL3OUzLjfTxMszVojnSlR A0KmWi/OWWPAgsA4IjIvLzJpw7mjvYxE7i04Qx7n8DOwlG5KY8gpKUGZNc4uVqVK7T1tCFCcF TPzsKhpegGzHiONDaff52n1Cpr8n3meWey8voh5IyXBdAi93CGZSxccT1JktSHAQpO27+1F+n NRYjoYhnIfjO6dCh7kL1slGC/XVoWac9lyKI7m07AohIQr1jpO/iBmLdyghMNFje40Ts7ihJB i0xR0yHsoz+a7kPwheHg7PG6XbyKxHc84sh3XBXG6rqFB7GXm79heRnXmZWZAXHR2zB6TWpbj VBe9vnJxAq4Xjikd7hoy+Z9JRmeAZ/LmRXBum+BQgjHKWGTLz/V4hsj8MjyrALs3CwAS90euJ faYcxDH6hjemdJRHw7BOhX2JfSjgmeq+uaVsI0DlV2R2KaJUQI= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 12 Mar 2018 14:18:23 +0100 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 --- drivers/crypto/talitos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index a2271322db34..4c7318981d28 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1399,7 +1399,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; }