From: Sergei Shtylyov Date: Mon, 12 May 2014 22:30:14 +0000 (+0400) Subject: sh_eth: replace devm_kzalloc() with devm_kmalloc_array() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86b5d251d5ac4dda51a022b34cb29b4ce65a8cd5;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed