Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751166AbeABVGn (ORCPT + 1 other); Tue, 2 Jan 2018 16:06:43 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35727 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbeABVGk (ORCPT ); Tue, 2 Jan 2018 16:06:40 -0500 X-Google-Smtp-Source: ACJfBosbwIla9bncan+HgBP/m/ovt7nKNLoEjLkoQGAlFNZOCQEovrhvMa7W0B0C/HeC9zsfh4lz9g== Date: Tue, 2 Jan 2018 14:06:35 -0700 From: Jason Gunthorpe To: Himanshu Jha Cc: selvin.xavier@broadcom.com, devesh.sharma@broadcom.com, somnath.kotur@broadcom.com, sriharsha.basavapatna@broadcom.com, dledford@redhat.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] RDMA/bnxt_re: Use zeroing memory allocator than allocator/memset Message-ID: <20180102210635.GD7614@ziepe.ca> References: <1514723558-5923-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1514723558-5923-1-git-send-email-himanshujha199640@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Dec 31, 2017 at 06:02:38PM +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/bnxt_re/qplib_res.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) Applied to for-next thanks Jason