]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: mvebu: Use devm_kcalloc() to allocate an array
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 3 Oct 2015 18:13:17 +0000 (19:13 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 9 Oct 2015 16:20:53 +0000 (11:20 -0500)
commit19fdb80091a8f3c09b7293bb299f6eb46c6ae070
treee440abd82697fea24a01d3fbb541b6e6418aea66
parent4a2eae2359bc79fe7d9e7463ed69ad17034fa00f
PCI: mvebu: Use devm_kcalloc() to allocate an array

Rather than using devm_kzalloc() and multiplying the element and number,
use the provided devm_kcalloc() helper for this.

Tested-by: Willy Tarreau <w@1wt.eu> (Iomega iConnect Kirkwood, MiraBox Armada 370)
Tested-by: Andrew Lunn <andrew@lunn.ch> (D-Link DIR664 Kirkwood)
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (Armada XP GP)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/pci/host/pci-mvebu.c