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

pci_alloc_consistent calls dma_alloc_coherent directly.
In commit 00f1c0702d66
("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/hippi/rrunner.c