Re: [PATCH] IB/hns: Use zeroing memory allocator instead of allocator/memset

From: Jason Gunthorpe
Date: Mon Jun 04 2018 - 12:50:49 EST


On Sun, Jun 03, 2018 at 05:32:22PM +0800, YueHaibing wrote:
> Use dma_zalloc_coherent for allocating zeroed memory and
> remove unnecessary memset function.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/hns/hns_roce_alloc.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)

Applied to for-next, thanks.

Jason