]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hns: Use zeroing memory allocator instead of allocator/memset
authorYueHaibing <yuehaibing@huawei.com>
Sun, 3 Jun 2018 09:32:22 +0000 (17:32 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Jun 2018 16:50:04 +0000 (10:50 -0600)
commit13ab850e7ab84fa5a617936cd2853cb81d212a98
treebb47f261166b8d4ab32458ba2c270407428a532e
parent50438d704b3b5e9abe3b8671741169c0314be764
IB/hns: Use zeroing memory allocator instead of allocator/memset

Use dma_zalloc_coherent for allocating zeroed memory and
remove unnecessary memset function.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_alloc.c