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

2018-06-04 Thread Jason Gunthorpe
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 > --- > drivers/infiniband/hw/hns/hns_roce_alloc.c | 8 +++- > 1 file changed, 3 insertions(+), 5

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

2018-06-03 Thread YueHaibing
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Signed-off-by: YueHaibing --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_alloc.c