Received: by 10.223.185.116 with SMTP id b49csp495816wrg; Wed, 14 Feb 2018 02:19:29 -0800 (PST) X-Google-Smtp-Source: AH8x227dtrAu2qV21H8E8bOIvyhKMMHwZ7pDMiSd+eAjHSiiePkWqHsRJCAgkSdKiuplf7U4+hRF X-Received: by 2002:a17:902:6b89:: with SMTP id p9-v6mr4039025plk.377.1518603569091; Wed, 14 Feb 2018 02:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518603569; cv=none; d=google.com; s=arc-20160816; b=aaXmSX1mQ519W9V33VJ0myycDxETshj8vBRmF9YF+LsE+KGFTi/Y9ck5uI6DnXadLg z94dLHM5wp1JVNkXuQ09FVGX4SzYigjSA22fET7ItvChYZWdpWlgWaNuk74KuU52aidJ z1LLPkwhpx5GpPcrkXYbEgI7OanPuFxH01xd5R1Z5hVtJzwmReELfA6muDLr4CHyahjM rFrrsSKInL4Mw2rVKk2ZoTDrXfL7uy/qXDDT3yG1l5qxYVSXYIVuCIQ4N4+gtK5Aq9OW BjFcvGFWJyxiLz808ry5WatIOwqCqrL2iygHrl2kBNhaXGjcUgYkjQKl+3jz9iK0KY4k uKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=dF9e12Pc4C6Uy4ME99DRlpnLYK4wC7lC3GkVVyTcOAY=; b=I7Uv87wFNMEmZoqw8rqSb+M9C384L9lNceDVIxV7A/39Il3V5TuUJeaG6Mntucwkb1 5G5uEjt1Lm6nqlBfnGim0pD4xBYErKLl2QaYh/O1XvR/IdxG+wr1I5Suxno6/cDmnn6/ opTJRderftNTyjI+CGxW0rrdw+IQIvj4tWVQhlyf4aq5A5CXIQ3M3RJ3TY9sOE3LTFQz tlRFv/hHgcAeTav8Rwa0V58l2RDDy11VUMJ10NQeQxsAubYT9pSeEg0jZ/NxKODO8dBm wIuznY9Z/NHHNKhZcUeImpz2zssRNaqXwky850X4VrO56DKdLrTqXj6lD0C48dpq5mEV xVWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 42-v6si1178827plf.609.2018.02.14.02.19.14; Wed, 14 Feb 2018 02:19:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967163AbeBNKSb (ORCPT + 99 others); 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-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.16.1