]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: replace devm_kzalloc() with devm_kmalloc_array()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 12 May 2014 22:30:14 +0000 (02:30 +0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 22:51:27 +0000 (18:51 -0400)
commitc562342dcd167e71520db8d9e04f26119a5bd79d
tree9e470f4f59180881e6585a91902ed6a17808c2e7
parentdf1d3e1c454bd092ab87d8d537cbb68fe21b3d43
sh_eth: replace devm_kzalloc() with devm_kmalloc_array()

When I was converting the driver to the managed device API, only devm_kzalloc()
was available for memory allocation, so I had to use it, despite zeroing out the
PHY IRQ array right before initializing all  its entries to PHY_POLL was quite
stupid.   Now that devm_kmalloc_array() has become available, we can avoid the
needless zeroing out...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c