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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:37 +0000 (11:14 +0100)
commitfaca05d97e7d72bb595e3987f5213b65c0c6e9c5
treee32aa4322e09dffaab778acab517df93f34bf489
parent761c8f25f79ab537ad94edf742d9f2d62dc99be2
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>
(cherry picked from commit 86b5d251d5ac4dda51a022b34cb29b4ce65a8cd5)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/net/ethernet/renesas/sh_eth.c