From patchwork Wed Feb 14 10:18:18 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: 10218337 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 97197601C2 for ; Wed, 14 Feb 2018 10:18:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A2928B78 for ; Wed, 14 Feb 2018 10:18:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78C8328F55; Wed, 14 Feb 2018 10:18:44 +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=unavailable 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 303B628B78 for ; Wed, 14 Feb 2018 10:18:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967102AbeBNKSb (ORCPT ); Wed, 14 Feb 2018 05:18:31 -0500 Received: from mout.web.de ([212.227.17.11]:60789 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966996AbeBNKSa (ORCPT ); Wed, 14 Feb 2018 05:18:30 -0500 Received: from [192.168.1.2] ([78.48.82.239]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lba7D-1eOhGK2qap-00lF0D; Wed, 14 Feb 2018 11:18:19 +0100 Subject: [PATCH 1/4] crypto: ux500: Delete an error message for a failed memory allocation in ux500_cryp_probe() From: SF Markus Elfring To: linux-crypto@vger.kernel.org, "David S. Miller" , Geliang Tang , Herbert Xu Cc: LKML , kernel-janitors@vger.kernel.org References: <20dcb583-5455-b5b9-94df-db9d1e21931f@users.sourceforge.net> Message-ID: Date: Wed, 14 Feb 2018 11:18:18 +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: <20dcb583-5455-b5b9-94df-db9d1e21931f@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:LDXS1NtnTxY8mnaiLlRglRBchtlo8OsKagRQIe3hBR+lv98707w 8EUDdTGeYBPsbuVwCnojYElsJNY0fSGa1WR2BsP6eIJoOFwr1WZ/4iW/PTRMtI4zcPD4/jE L0pDPdeIns32EFBFFjGeyRAu/sFfdekOs695wNcRaE1CD8mtA6g3chHnzivBg+VI1q8CiIi BmvbhD3lamNpwh6sgzcEg== X-UI-Out-Filterresults: notjunk:1; V01:K0:FkiKZpn3nYc=:boS+DzKv4fJJ1gPzzttXY1 SjlS8oxg54xSPbXWpljJP6gvs/MfTLPUBiw7QJw4i3K2X8tpEHyPgwS/eTtj8zliupPWFYKyM yAzdTdyMUqa4Zg5aPnT0eo8iDa9Lej1qa0BkAiqdbdgtm8D+BJdrdvtLzOd8cGFk/W8RUFVob Am02UBIX/c4mPx8iDtG2JVG+entOgO3EJ8olNy+JjlkmHEYfsyIonCdWGssqauT+k1160joJV 4j96B/hWVJOP9dUlL0Ty7WfDSggZjsw6IA1x3De+hd+xE/zEOJTtlppNaFvsm/F8+YlsrcebK 7G6FDJzk5DSK8kJSKEyhSz3xly2cAyOqVVEeOCSlhPkfDaiIZYttE0KJvSb8SVXMaEAzJARJU AiZUwUchGmahUpEbjz8t078z9TlRUBm0+cEca0n5Dj/5x1bHUjsWOiY+dSA/52lX9kjhzavql cfAS1Zx0SHCkWQX9H8j6dOKWPEPG4+w0H6sypKtTLp4620xCA3zXOEvJqtjvXvmh6aojmu/Ob NOj5w2EDRMldNQ/Frg+X8EhOeO2XqQahS3LNE1Gm6Aob5gV/jp/z4yM8HPmi1A6vodydXDV8F lIS8MuZLa5OvG4corBffJGlXx5DQ2UgU/f03Nz5DyIi0LQKzOQyECYCgQRoLB6tzGHYtP8Prl F5OiST48sSTMJOXoPxy7rhFImmVmHEbZwzIuYhxQ583FC8ABYKEtZohlbvBoPOPK48Qg8wmdA osxaEuHurZ5FMjrkxmIT4dlRNAgB6P3Tr0cbtJUR1stuFls3/jkPRcRPZ4Xt2br3tMd0zX+3K BY8YAPWCrn5C1qIbTs3SNpJkoR6DKDbep/2skwOGEZT45fICBo= 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: Wed, 14 Feb 2018 10:12:38 +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 --- drivers/crypto/ux500/cryp/cryp_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 765f53e548ab..50bfc7b4c641 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1416,7 +1416,6 @@ static int ux500_cryp_probe(struct platform_device *pdev) dev_dbg(dev, "[%s]", __func__); device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC); if (!device_data) { - dev_err(dev, "[%s]: kzalloc() failed!", __func__); ret = -ENOMEM; goto out; }