PCI: pnv_php: Use kmemdup()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 27 Sep 2018 06:52:21 +0000 (06:52 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Oct 2018 21:04:40 +0000 (16:04 -0500)
commit74171e9dab62bd9ab616c1a8f9f1c13af71f4f5d
treea9c82bcc1f3f9e4936a45ad6f5eb93b01533651f
parent37f1c5868e457386950e7e27212bfdcd9f77f302
PCI: pnv_php: Use kmemdup()

Use kmemdup() rather than duplicating its implementation.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/hotplug/pnv_php.c