Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128AbeABVGP (ORCPT + 1 other); Tue, 2 Jan 2018 16:06:15 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:44650 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbeABVGN (ORCPT ); Tue, 2 Jan 2018 16:06:13 -0500 X-Google-Smtp-Source: ACJfBovQ7/mSo+O+7NhDQJQOlPJf9EBVtI2fuWiDRQXKTUvE1ofW+2OAK7geRHC/FrmPRVWC3iqfzg== Date: Tue, 2 Jan 2018 14:06:07 -0700 From: Jason Gunthorpe To: Himanshu Jha Cc: aditr@vmware.com, pv-drivers@vmware.com, dledford@redhat.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] RDMA/vmw_pvrdma: Use zeroing memory allocator than allocator/memset Message-ID: <20180102210607.GB7614@ziepe.ca> References: <1514723340-5793-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1514723340-5793-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 05:59:00PM +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/vmw_pvrdma/pvrdma_main.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Applied to for-next thanks Jason