Received: by 10.223.185.116 with SMTP id b49csp1228027wrg; Wed, 14 Feb 2018 13:41:16 -0800 (PST) X-Google-Smtp-Source: AH8x225pNZeeJLO7+Xf++TH1nC/HFc3Zz3ct7VjApevddGqrggrgqyda//1E4i4Y/JleYQ7BfksB X-Received: by 10.98.153.197 with SMTP id t66mr464985pfk.142.1518644476756; Wed, 14 Feb 2018 13:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518644476; cv=none; d=google.com; s=arc-20160816; b=C3HQ6gaG5OCX72+LtjoKvx8eBzMQv91yHNZ71iBUTsbtr+M3S99i+PKaqrMXNMG7bY w2/k3H6gmjzgFwqgOhDcSyJAKUkmpuIqeToKi9y1IyYcQ+zFkRjMFGsYBq5008hOv96D ezJk/pLTI/GNv1Cd8BlnFxVfEMdhMKk3uRm58OFaMUNWJRjSd8Sr2MBcan80dJmC0XGX aezUB1kG24FVZzQNnYPqhZ9ai3/at32vKnSOqrzCVqtlvVRN2xqjYViQ+AhBClJyKoxQ yznwCU8unflzNYiHLfqqcw/HQp8+FmKj8bsIrl0IsIYudn0MaxNQcMwNYWQgVHl+/2Zy Cs3w== 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=RvIX9tDyGICrcq5f9OzM+2HPQayXZyqKawqLOea6L10=; b=UMncd44uOB01DpHhVvusgLJlAV5ew2obT0Jjo+/crGTOQEY42MMkfHzdWRER2AsVtN GyvITO1p6RXHjLeMYBr0VdIlITs/Gy/n0Mynw3l7rF8H28aEFbM0MUAD83Lvxq3iQ22e s9P8EqTu0oRN6/bIYPX7SDFQOoSCZZWyRu0mDcm7fsjmNcZEJ9ksfX1+00nPXAXZpw6A /pwMLs4ZpIQ3hG9jbbLFtzuXspsslxlmYdM1Qf4G4vzE2if7egBb3eKjSEAE135yhXMo 9eqGIlRuX70fV7ZQQ8Kgt6edbBsmVDFaP47t6ZNJwq/iCkEeRYDzM23R6t3wdxk7kPrV Lzzw== 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 a190si1576990pge.436.2018.02.14.13.41.02; Wed, 14 Feb 2018 13:41:16 -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 S1031648AbeBNVjk (ORCPT + 99 others); Wed, 14 Feb 2018 16:39:40 -0500 Received: from mout.web.de ([212.227.15.4]:40329 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031404AbeBNVji (ORCPT ); Wed, 14 Feb 2018 16:39:38 -0500 Received: from [192.168.1.2] ([78.48.82.239]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MHuv7-1enRHx2xkD-003h9V; Wed, 14 Feb 2018 22:39:28 +0100 Subject: [PATCH 1/2] crypto: bcm: Delete an error message for a failed memory allocation in do_shash() From: SF Markus Elfring To: linux-crypto@vger.kernel.org, Arvind Yadav , Colin Ian King , "David S. Miller" , Herbert Xu , Rob Rice , Steve Lin Cc: LKML , kernel-janitors@vger.kernel.org References: <68946b12-83d6-ab74-fd54-71b23cf9b7ef@users.sourceforge.net> Message-ID: <35f107c8-c640-07f9-c10f-83fbe1ce4259@users.sourceforge.net> Date: Wed, 14 Feb 2018 22:39:25 +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: <68946b12-83d6-ab74-fd54-71b23cf9b7ef@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:7lc1cEzbb21Yiz7PKdRI5vIMOG3/dHAajEIVLKgF37d/CRqISbi N9aeVQNGJ/Hiw+fJan6eZJ/KUIVwl3rfzQvDv+uzfP43R/DAJxak7ALSr926XJObALwTRaX IV4Of2ma4X4H+z3v+neszgbv8301SRshRLPk0vwBLqnQmaYED7OT67CimuqhmXGkhx7AKC1 ToQjpJLSa/sORGRKw6U0A== X-UI-Out-Filterresults: notjunk:1;V01:K0:gUZHcFtnFJY=:ZH2O0RZhVrfMl/jWHhs6YF OusfP8g5ck+XYME+yDFkC0HbfMF1PC3/SucWfgTb9PdbgPZ/c5B9I2AztQkwaTgRmC5jAy40N 4zs+VJW3NNVu3QpMA2XJHgEWsmwSWGT8Qo5NTMZQowgMGbTirfAACA9M3C9RwG0XbH3f1kzu8 auqaqjGnIHJHmOx8qF9mlXIX+8Os8qRX0oZZEMAHQ6olfBNKoHq5dGik/SOtn6nwx2BhXOCtH vSkasBcMto2bFgKJ4jRhBP+SXMLnGMSjtvnaAz7cc0xihRcRyL64ulwNRSfoZz+44dRiBVHqB UCfNtZ9gLpYwsGJa3Q0qlnXj8Z7ds84fEIYzu+nJwF/zYS3T7KejhCsDastGfdBBBmo8hdNKc X0s6gyL1IOF8q5qoH2d94v2Sh1men7eoT2H6i6CCKDFR3EjnMoeal6uQDqxfHc5rJyLYdfEZU iJwbjv/xIW0YjsoxlxFRjXjOUgGGL118V9s0bTv3LdCHvej0pz3DXgT28cgrFFlD2TSv1XFhR 1Z9wzF6oapRMIWxAFq+mIGXFfinUHqByPBnbZWx1SiHG2kBJhsI43pdj6kgGPPGwztQgydSkH t5lMTam8RZdvNQ/tegnBVPRqJ7NYFLlu//FW/v4r0kWORTthQ1xX4patB1AttEYNA7pRtSyQO O1vtPcJtSaWhPPfIC2BMzHZNIagj9i63UvLwyModJQoqtkswixMBpB6Zj2TiUicHMz5XeYwB9 AVBfsoO/2Hfp3lG4Wl6iY8L0S2pdFt9LlmwDOJCbVmu9cAu7D/rSmM0P+dckJV7dBQbagGd8I 4Zpm/E25jpKn59orflR1Aa13tiI/PR4EzK2ubJmNLhuTM2NEyY= 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 22:05:11 +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/bcm/util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm/util.c index d543c010ccd9..a912c6ad3e85 100644 --- a/drivers/crypto/bcm/util.c +++ b/drivers/crypto/bcm/util.c @@ -279,7 +279,6 @@ int do_shash(unsigned char *name, unsigned char *result, sdesc = kmalloc(size, GFP_KERNEL); if (!sdesc) { rc = -ENOMEM; - pr_err("%s: Memory allocation failure\n", __func__); goto do_shash_err; } sdesc->shash.tfm = hash; -- 2.16.1