]> asedeno.scripts.mit.edu Git - linux.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)
commit8c61b24585c44e1de337e45858129abce9c3a008
treebb47f261166b8d4ab32458ba2c270407428a532e
parentcb2595c1393b4a5211534e6f0a0fbad369e21ad8
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