]> 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)
commit824cad4c75d2f997d909c57b149061335c15ea39
treeb8ab396092fd6adcefe27b0d8bd4d6f74c68c34a
parent6c0418a7f75f6c9215ff210d7f02eb6b368ad95c
net: alteon: Avoid some useless memset

Avoid a memset after a call to 'dma_alloc_coherent()'.
This is useless since
commit 00f1c0702d66 ("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