Received: by 10.223.185.116 with SMTP id b49csp1168950wrg; Wed, 14 Feb 2018 12:43:56 -0800 (PST) X-Google-Smtp-Source: AH8x226Iu/ONSAihN2oqx5jdZ6MH8Hd3wEW58ou+C3En/oR2Zw2LXrjuJYHhPYLwcNmtEIIGg91G X-Received: by 2002:a17:902:2f03:: with SMTP id s3-v6mr274783plb.112.1518641036678; Wed, 14 Feb 2018 12:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518641036; cv=none; d=google.com; s=arc-20160816; b=KkGecaZqSiEEwl+v3xwHvWU522nR0yzlM6/ClvU5mFCFARNyy9dj8fa/IsTx7y4Vtw BGy/mB7rz1A387FCBk4yVTPm07L49VUlgVGo7QEMBNDT+30IkakA/HNPqibOZV+cs54V B9kaVmCXUDnbLuZwaWXUOPHoUk2Pv+noVI7o4uHuBCaLeJG4UH/zd1IAv7SegnFKCiD3 4T/6DFIM8Qzf+kineXNCJzVFfrfu9lPhrob9a8Z8hL61Ha8jxtHNlNPDY4sMzvc5NEqW 4474rJhVrx2SDNEXbu9ZLtoR7o2lwrwisoxlc1in0ZUh2U3QUi49HfuP2IIw//k2X6WN W3Zw== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=3QVfVKeBTLwpFLKggW2FyPJcSrPESq7PEdwOke9G/yo=; b=GZtXRFfqX1lm5lp2mIqGdMttifEufpyzUu2KLkipOXCQxuptfux6dhic747YdOtknB jKMvYZqQYDrR+JTo3tkCBBJDZ40RWuYzQ9I2mtJPham5n7RXVVSBDdSCY30koE7wFb/F hcMGidyheOo3TYz2EpEpWyKIut+S99uOyp3IHtDglG/vIvF/l7Rj5L6ZjKrmUCJ49RS6 E31WQyg5mo5Y5ze4ssMvZsBZXd8v91dAbZ8oVTZvwtYYzBimpy+cv/if4vNHt7Rf/2Ut wsimHYIJh24TVcX5NDcqvM3jQ2ywJxh7ZQ8kOpw1aXcZSq5mbbnRDyubK9A+x3eHWqlw DzFw== 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 t19-v6si304211plo.128.2018.02.14.12.43.42; Wed, 14 Feb 2018 12:43:56 -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 S935421AbeBNUmj (ORCPT + 99 others); Wed, 14 Feb 2018 15:42:39 -0500 Received: from mout.web.de ([212.227.15.14]:33135 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932096AbeBNUmh (ORCPT ); Wed, 14 Feb 2018 15:42:37 -0500 Received: from [192.168.1.2] ([78.48.82.239]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MDByG-1f0MgK2MrU-00GZPd; Wed, 14 Feb 2018 21:42:28 +0100 To: linux-crypto@vger.kernel.org, "David S. Miller" , Herbert Xu Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] crypto: bfin_crc: Delete an error message for a failed memory allocation in bfin_crypto_crc_probe() Message-ID: <1601995f-79fd-8365-5dd3-4438a3515c28@users.sourceforge.net> Date: Wed, 14 Feb 2018 21:42:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:JGbZ+Uw0/DP+vg7B39YPuPEEqCIHddZX8yAPjyJxFzF6by15Y2P xwzoUGvpWOKVU34PrScSTc6u7eVG4aG+w3Lhz1jSr0lOPROWJAqExi6aHdNwMqNIm+yBLub pnaKmQW6ixXrrPMWRWQeml9LCklCX+OP6JUUS6jaVPYEXg7B3luAIeW27+a8q+05eiMpMIp doFlZ1JseASNE3mCjN9gQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:eYFTa0TV+e0=:0as+uoTIpc0NUJULbJIjbT C1iGKbZV1iz17oDJfPAABDUNhf5MRZ08xojHyYyqptLbPu9eHnK6gXm5vzx3kGCTkEg7yFokw /AAcpul+RC2PSmutRpQkk+K0dTWDH6i+mjZqSj98t77tnMbW/m1Is3M55YaYDryRz6sAShkEm GTnX8U8gAlkdwtDQrwK7Rx4wnAZnJYJD6Bjg0FMPZjyBA+T+6TabUtP9p7CYdqKEMCC5WLTVk 5fRCk2yF8dCNNkpNDPvDgJVcdUy79sTyoxjhLXrOn8xh8G5EF2NeN55vxVUEQTIN/VQpjz/K5 jbjZ8xUk2gXPJdgXADrAFtA24d79WmaPnPQdJvMOP+8uO7unAuq7IEdaIWatiqjmARCwHWyzS DZIZpdCOCHaLG16EqSLy9on3qeqGfTUIkvLAKuNtiUG3X5V+zPGUCq6/bQyRdwAoyQ/fG7VMv JqgYzAqQWRMfXAHnOhiX+jZoc0GgmI7ji9tjEXJi8LiSHEjieTWHbicbnQraxEi7UPqFSJ/bE FSv6HdKeZNSa6lBE4A11z3f8rs7OoVFniBjIR1IrdPzAL/WvkEXIXgoe0h2NnPs3bO1WlHMWr DX6zddluGAscIK7rCrg5XvEcBusKcuurvqIoq+YWzdwB3ANnPSSm0zxIzL935tuaLPCTlFsev +idBVL+vTgXFSxORPupNCOK/rtt/g55hUHyp5D0K9Ol0uyxzj9t0OF/aEhRK0TCbpl0GurzPF Su9CtUqWaFW+LgdHLTpzBDxRAg1cuzZV866DiCGsouujTDJk8TlWkJFVoS21b5liHK/kbINFu ftdH50hjsztn/pQg9+5zwrmRAG8Pa3Yyrzfq7rSWWhn3T24oE4= 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 21:34:54 +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/bfin_crc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/bfin_crc.c b/drivers/crypto/bfin_crc.c index a118b9bed669..7a1d6ed6d0b7 100644 --- a/drivers/crypto/bfin_crc.c +++ b/drivers/crypto/bfin_crc.c @@ -575,10 +575,8 @@ static int bfin_crypto_crc_probe(struct platform_device *pdev) int ret; crc = devm_kzalloc(dev, sizeof(*crc), GFP_KERNEL); - if (!crc) { - dev_err(&pdev->dev, "fail to malloc bfin_crypto_crc\n"); + if (!crc) return -ENOMEM; - } crc->dev = dev; -- 2.16.1