]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit398c271a6318c317fabef6caa59bcdf3d5af12b3
tree177e1c79faf67d0a76d85503e16008896a6e3867
parent752130a9ee4a3635437cbbafde46e01d2754c440
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