Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751169AbdLaMMO (ORCPT ); Sun, 31 Dec 2017 07:12:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:34176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbdLaMMM (ORCPT ); Sun, 31 Dec 2017 07:12:12 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 925FE21993 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=leon@kernel.org Date: Sun, 31 Dec 2017 14:12:09 +0200 From: Leon Romanovsky To: Himanshu Jha Cc: dledford@redhat.com, devesh.sharma@broadcom.com, selvin.xavier@broadcom.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org Subject: Re: [PATCH] IB/ocrdma: Use zeroing memory allocator than allocator/memset Message-ID: <20171231121209.GW3494@mtr-leonro.local> References: <1514648396-6964-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QGBKWVSgmlsIyJ+t" Content-Disposition: inline In-Reply-To: <1514648396-6964-1-git-send-email-himanshujha199640@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1745 Lines: 46 --QGBKWVSgmlsIyJ+t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Dec 30, 2017 at 09:09:56PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggested-by: Luis R. Rodriguez > Signed-off-by: Himanshu Jha > --- > drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 19 +++++++------------ > drivers/infiniband/hw/ocrdma/ocrdma_stats.c | 6 ++---- > drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 8 +++----- > 3 files changed, 12 insertions(+), 21 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky --QGBKWVSgmlsIyJ+t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlpI1BkACgkQ5GN7iDZy WKd1gRAAwAwrATdj/Vxiq4PvFFCGHE3xBMDHu8s3xZvwilez8G6KvnFatXyhP3Ra nBiIPIilRAyBmbMvVf7SNucePqNDk15ID+ziBRa8mwaCCejM0/3d4rfgilBuGxa0 DY0RXLJ6iTQod8KJa2XOmMnJxFEPtRSCkwAgTetzHXcZWUbSHHExgMDb7SeBDKPr 24zvFEtoIMKtTsh3p4ANa8c/QOGK7REMN4PoCApgAvD8J2tufomwXvvBLP+SW+Sf oirAsNTFtEFMlzuHWMSl/gK3qvjJEe683Te6jFun5V/qtCYpD/+VM/4yPf6iYRHx M6GV1ruhvUKoHooe/XRHnuqEzNBVrwCieGaVFz7DCfx/WUtV0aTXemmcoTtk1+uQ 3tKMqiCNfpbXnzea9hIX1GKw68DUXFGUdqGBwEt+iWfrAl1fHkpKKjYArmYdpfUg +YMMRasBCzaW/Hs4iVcTdPURyvG0kSUWjQMohKjv1QMz6/5SBVlzBDqECvP7cNe2 rcpUepCxEAP+3cjLrLJ+AQThVYxbAh5X3d4/M27OmfjWe4hYnV1OhyUJMutyUEsL fZoF/ojT3KJ1XZ0EW5W0URdwVWsynizK6STtAHyKRIzzvpA0FKmtMAAgvCijxw/r 7I0tb4BaPpE96lCir0Fhiq4POs2j7sATjFRDdUcufhWfFlfUttE= =m9wL -----END PGP SIGNATURE----- --QGBKWVSgmlsIyJ+t--