Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751111AbeAAIQH (ORCPT + 1 other); Mon, 1 Jan 2018 03:16:07 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:38729 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbeAAIQF (ORCPT ); Mon, 1 Jan 2018 03:16:05 -0500 X-Google-Smtp-Source: ACJfBotzIot7OWa1RmaBYH0EK39ySHBe/xDZsYYMiy50/m5JV074TpRMV/X98IGsEZVhFs5rKQzG1YDZBe6ew4FkBFY= MIME-Version: 1.0 In-Reply-To: <20171231121209.GW3494@mtr-leonro.local> References: <1514648396-6964-1-git-send-email-himanshujha199640@gmail.com> <20171231121209.GW3494@mtr-leonro.local> From: Selvin Xavier Date: Mon, 1 Jan 2018 13:45:44 +0530 Message-ID: Subject: Re: [PATCH] IB/ocrdma: Use zeroing memory allocator than allocator/memset To: Leon Romanovsky Cc: Himanshu Jha , Doug Ledford , Devesh Sharma , Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel , mcgrof@kernel.org Content-Type: text/plain; charset="UTF-8" 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 5:42 PM, Leon Romanovsky wrote: > 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 Acked-by: Selvin Xavier