]> git.baikalelectronics.ru Git - kernel.git/commit
net: alteon: Avoid some useless memset
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 16 Jul 2020 20:52:42 +0000 (22:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2020 19:57:59 +0000 (12:57 -0700)
commitc851d7b9494ea11b54ff7c9b85baf1e260a7fdaf
treeb8ab396092fd6adcefe27b0d8bd4d6f74c68c34a
parent177ee1b84c5892ddc7451dcfa36b93f4d5b7c71e
net: alteon: Avoid some useless memset

Avoid a memset after a call to 'dma_alloc_coherent()'.
This is useless since
commit 178cbc5f6e72 ("dma-mapping: zero memory returned from dma_alloc_*")

Replace a kmalloc+memset with a corresponding kzalloc.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/alteon/acenic.c