Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbeABVGx (ORCPT + 1 other); Tue, 2 Jan 2018 16:06:53 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44688 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbeABVGv (ORCPT ); Tue, 2 Jan 2018 16:06:51 -0500 X-Google-Smtp-Source: ACJfBotn+CDszxuSo6vZsSRqy1ZmDV6IcTrxe1EK0oho5c+VALLxL2AIn26rNHp2qNJXdchS/TBotQ== Date: Tue, 2 Jan 2018 14:06:47 -0700 From: Jason Gunthorpe To: Himanshu Jha Cc: dledford@redhat.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] IB/mthca: Use zeroing memory allocator than allocator/memset Message-ID: <20180102210647.GE7614@ziepe.ca> References: <1514723650-5990-1-git-send-email-himanshujha199640@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1514723650-5990-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:04:10PM +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/mthca/mthca_memfree.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Applied to for-next thanks Jason