Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbeABVGa (ORCPT + 1 other); Tue, 2 Jan 2018 16:06:30 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38899 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbeABVG1 (ORCPT ); Tue, 2 Jan 2018 16:06:27 -0500 X-Google-Smtp-Source: ACJfBot3+uJDxIgiu7Q442gjDfAk8ZvsXlgaOKOi8EVrJSku6J69xQhUUdX+jLACpkx70YlkGBM8/Q== Date: Tue, 2 Jan 2018 14:06:22 -0700 From: Jason Gunthorpe To: Himanshu Jha Cc: dledford@redhat.com, Ram.Amrani@cavium.com, Michal.Kalderon@cavium.com, Ariel.Elior@cavium.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] RDMA/qedr: Use zeroing memory allocator than allocator/memset Message-ID: <20180102210622.GC7614@ziepe.ca> References: <1514723463-5859-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1514723463-5859-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:01:03PM +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 > Acked-by: Ram Amrani > drivers/infiniband/hw/qedr/verbs.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Applied to for-next thanks Jason