]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: Remove call to memset after dma_alloc_coherent
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 15 Jul 2019 03:21:18 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jul 2019 18:06:27 +0000 (11:06 -0700)
commitd79e7285a151b83d5ec4f13f70ecb1fb770012b0
tree24bb90afeb47207753b0c9ae98253ce795ef8443
parent461a596ba52484cf94ad7257d85c3533e73a23f0
vmxnet3: Remove call to memset after dma_alloc_coherent

In commit 178cbc5f6e72
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c