OSDN Git Service

qed: use dma_zalloc_coherent instead of allocator/memset
authorYueHaibing <yuehaibing@huawei.com>
Mon, 4 Jun 2018 13:10:31 +0000 (21:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 21:28:43 +0000 (17:28 -0400)
commitff2e351e1928b5b81a23d78e3e4effc24db007b9
treed52c7d3d7b7166109de0416b3f4f14136c9c5cf3
parent1f55c2865c21a49d882261cfa8d85635814ad8ab
qed: use dma_zalloc_coherent instead of allocator/memset

Use dma_zalloc_coherent instead of dma_alloc_coherent
followed by memset 0.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c