]> git.baikalelectronics.ru Git - kernel.git/commit
net: hix5hd2_gmac: use dma_zalloc_coherent instead of allocator/memset
authorYueHaibing <yuehaibing@huawei.com>
Thu, 19 Jul 2018 13:57:11 +0000 (21:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 23:31:23 +0000 (16:31 -0700)
commite17d247b3fa9831ba12ca7856f355f837108a210
tree2aa7498719f3ca2df7c7d44c49f0c03599034951
parent9033a528929dfdc74371966e587ffffb32f17d78
net: hix5hd2_gmac: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c