net: chelsio: Use zeroing memory allocator instead of allocator/memset
authorYueHaibing <yuehaibing@huawei.com>
Sun, 3 Jun 2018 02:40:15 +0000 (10:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 20:07:30 +0000 (16:07 -0400)
commit40434a670f66f797b3a40603a286def35337dd4f
tree177e1c79faf67d0a76d85503e16008896a6e3867
parent1a025028d400b23477341aa7ec2ce55f8b39b554
net: chelsio: 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/sge.c
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4vf/sge.c