Received: by 10.223.185.116 with SMTP id b49csp1710930wrg; Wed, 14 Feb 2018 23:46:15 -0800 (PST) X-Google-Smtp-Source: AH8x224e8PO1VjoRQtZJ1tX6ZJ0uDg76PL2Dj195//RYptkefrpfeBfJGoom70/lgtg4EbdIrMTn X-Received: by 2002:a17:902:8607:: with SMTP id f7-v6mr1734722plo.273.1518680775284; Wed, 14 Feb 2018 23:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518680775; cv=none; d=google.com; s=arc-20160816; b=uXTfc8RouoQop5JDbUSi7XuN2qAQOCzDtLTGxUsSRrktCNihWKrBqmgxx6UVHV1Q1E 5MG6WWhrrHi7aoZ1b66i6vqW6yuHpjteHiH9Nqa5L6z4DE+pwxwFnzzfxhUqqUiHl6d3 lFNspj7BdT4a1r9TbaL3WmSEayxagNRqvG9jI0m8z6Al3WVIVHPd5SUUuIO3Q6cfm6aZ biKR/h3cLAwNyl6sGAvarKHo81F8VDimjYsK9iLveht4CMY24WDerZ4Pcx3fHkMYJHmJ PJ6iEstlOn+QzTlPLQbEK880VszhTtozI4QIFnEcB80ah8MI3rx9kQn/djfGpPkcZYQB U7GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=3ZxYji0SiDh1HLaUqwRgd1WodJo2KXqUY90uAhJcvEk=; b=JPb97kwX4cARAuUee2iJqcDK6poopouPechkXy2Ye3U+xu2PUfdNLep+TA+0BnakjV 9CH9dsLBqaUpcd/xMngdG2XZN5AbmmnX0KCD+UebLJlT0b4IASsGZTJCW7PEE5Lec/U+ sOVjo1i4wQQBRS4ab9pxKDPakVJ0vIGpGK8QjoZpcRqNceuBmFSdqwfEqSwrzz1LAII9 14PSqG6TitcvNlcO3wN28IRmJv3Rfy6Rfn39xLUHss4ejvO5CVPp2mBAei1B47hDnb2a VJ3ZxrPj/ExREcKOsUBlpvrYFgmBSlu9aoDs3D69WydsDnd/aG/ipgn1Bv81S8mgf06c 6qtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=JDgFQbfO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si1017059pld.744.2018.02.14.23.46.01; Wed, 14 Feb 2018 23:46:15 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=JDgFQbfO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755052AbeBOHpW (ORCPT + 99 others); Thu, 15 Feb 2018 02:45:22 -0500 Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47]:18976 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755032AbeBOHpT (ORCPT ); Thu, 15 Feb 2018 02:45:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3ZxYji0SiDh1HLaUqwRgd1WodJo2KXqUY90uAhJcvEk=; b=JDgFQbfO9EL7m1V961BdUlTJxFFBk3cmwmbWkFxZKqCG52vbJrN0ulsp4qxxGC4FoxU50c57YOL55FvU0P9x305L4ZEkAEm+Ullo4LABRuyATsYhroFz2B8lqGOBRQBaAZTJyAE72dugvi0PtbUUlYfJc4mRbUdYnOxdZ4YiJdE= Received: from VI1PR0402MB3342.eurprd04.prod.outlook.com (52.134.8.142) by VI1PR0402MB2704.eurprd04.prod.outlook.com (10.175.22.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Thu, 15 Feb 2018 07:45:16 +0000 Received: from VI1PR0402MB3342.eurprd04.prod.outlook.com ([fe80::c00:390d:e182:6900]) by VI1PR0402MB3342.eurprd04.prod.outlook.com ([fe80::c00:390d:e182:6900%13]) with mapi id 15.20.0485.016; Thu, 15 Feb 2018 07:45:12 +0000 From: =?iso-8859-2?Q?Horia_Geant=E3?= To: SF Markus Elfring , "linux-crypto@vger.kernel.org" , Aymen Sghaier , "David S. Miller" , Herbert Xu CC: LKML , "kernel-janitors@vger.kernel.org" Subject: Re: [PATCH 1/2] crypto: caam: Delete an error message for a failed memory allocation in seven functions Thread-Topic: [PATCH 1/2] crypto: caam: Delete an error message for a failed memory allocation in seven functions Thread-Index: AQHTpcINkL6pgU8O6k+4QE4YgU4KfQ== Date: Thu, 15 Feb 2018 07:45:12 +0000 Message-ID: References: <9a9a602d-93da-457d-c37d-2acbb4b7b5d5@users.sourceforge.net> <594d974d-577d-353d-9e99-4f98ad911cb4@users.sourceforge.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [192.88.166.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0402MB2704;6:+k0u8BYwxg54MQjO4wWUV2MLsgLJ/Qd0vMsc0AvFb2N3OydVH40iBKrloQH8IEeTu2NVphLx6Um8KKW5qxTSadKehP2CbQexkrbwEK8CXiYDciPziPjqO7/n8Lhhi7umKse29cBh5qV6Gm045XMo1C3cgTQ7z9DI19mIjT9bufJta+k9WEsHg250pOEExCWbm/83q2wXZCGTUhZd7XcmQ3tMepoOxOj7bPy1vrBEpL1Z8Jow9JfXsGb356rm+hqhEVHUplms8+ZFpOQexe2agYEke4bGSs1CGEPqQ6z3dfFQ4Wjjl+lnbVDO+qRkIZNWu3XWsN6eVMDFIdKCuyP9hoSQ90H3I2QlMxbXZDExjy2jDJap01YVOtNoxmmPUTW0;5:z4ti/Qr+mjxhXm1Hzgudi/4sVsnGb4y7GBX43sT2pnHnAtfONAvaub+UeW8C1WmFjyp4PT/0I3kI//EVH3LrIKAyxbC+IEoIxTYswfEtJk11j9kfKCrMiE50hS2f1PXgXUrLc14p+3y+Oa8lU+wwrH9ZYKiW59hI+cp6Jg2KETE=;24:d32KBeU7TyXdKaGHokuW5QTipOHaEaEBAfZvImt2HESoL0xNQ8MOQb/Wn3fqD3t/gO3u6JMLEkzzAvCjA43B3uTcZ/42Vl7SsPyp8cCPbqk=;7:idMhqd7Fi79xeNzRFhGk37t5lN0Zv1dTZaM6pNB8HBBJEpVMa/5BESWcP8zwOC+kUy+ObvihBRz39URcCPryoOtyEMwnk/I6wyFZGHeSQplhvldr1KniaHXolmDaHZPJcEP49wDGBbpR9mUoIE1DhOjFX629p+kZbGI0DqQNDSgbtijSkgIFY9AIguJGvf7m8cbHkt6LzxFjxO+M/wmTi9Dpleo6vyu6Hrp3FR/ISGVkKylaKTLQ3Rvd3AdCVJJ/ x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(346002)(366004)(376002)(396003)(39860400002)(39380400002)(199004)(189003)(3660700001)(14454004)(25786009)(5660300001)(2501003)(3280700002)(105586002)(76176011)(229853002)(3846002)(6116002)(81156014)(81166006)(8936002)(2900100001)(8676002)(86362001)(4326008)(7696005)(15650500001)(478600001)(99286004)(97736004)(33656002)(55016002)(6246003)(53936002)(305945005)(6436002)(68736007)(9686003)(66066001)(74316002)(5250100002)(186003)(54906003)(316002)(7736002)(59450400001)(106356001)(110136005)(53546011)(6506007)(102836004)(2906002)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2704;H:VI1PR0402MB3342.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c8fb3d49-4fa7-4dac-e55b-08d574480b8c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:VI1PR0402MB2704; x-ms-traffictypediagnostic: VI1PR0402MB2704: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(42262312472803); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(6041288)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:VI1PR0402MB2704;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0402MB2704; x-forefront-prvs: 058441C12A received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 1sCQDPXBoJYI5jyObiQSHc72/6BvtjYOM5WlFJ+OKsBOT63sH/OXEoNj3MJg6qOgv5gTSH7FC3assrnhD8YQqw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8fb3d49-4fa7-4dac-e55b-08d574480b8c X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2018 07:45:12.1949 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2704 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/14/2018 8:31 PM, SF Markus Elfring wrote:=0A= > From: Markus Elfring =0A= > Date: Wed, 14 Feb 2018 18:22:38 +0100=0A= > =0A= > Omit an extra message for a memory allocation failure in these functions.= =0A= > =0A= > This issue was detected by using the Coccinelle software.=0A= > =0A= > Signed-off-by: Markus Elfring =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= though please consider the following=0A= =0A= > @@ -689,10 +687,8 @@ static struct ahash_edesc *ahash_edesc_alloc(struct = caam_hash_ctx *ctx,=0A= > unsigned int sg_size =3D sg_num * sizeof(struct sec4_sg_entry);=0A= > =0A= > edesc =3D kzalloc(sizeof(*edesc) + sg_size, GFP_DMA | flags);=0A= > - if (!edesc) {=0A= > - dev_err(ctx->jrdev, "could not allocate extended descriptor\n");=0A= > + if (!edesc)=0A= > return NULL;=0A= > - }=0A= > =0A= With this change, ctx parameter is no longer used in ahash_edesc_alloc().= =0A= Either here on in a different patch the function should be updated.=0A= =0A= Thanks,=0A= Horia=0A=