libpayload/libpci: Clean up pci_alloc()
commitd2ec82d137448dc9b851d2d60b715fabdc6e78ec
authorFelix Singer <felix.singer@secunet.com>
Tue, 13 Oct 2020 15:27:19 +0000 (13 17:27 +0200)
committerNico Huber <nico.h@gmx.de>
Sat, 17 Oct 2020 16:33:06 +0000 (17 16:33 +0000)
treef5500dfa55227b7783b7a18863ad555f34037e92
parente1194ae6b6b9b02371d1e9e9c3b00aa658f30213
libpayload/libpci: Clean up pci_alloc()

Clean up pci_alloc() and return pointer to allocated memory directly.

Change-Id: Ib2ee8dbfaabbf7a824b4fd75ad7c779393af2900
Signed-off-by: Felix Singer <felix.singer@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46345
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
payloads/libpayload/libpci/libpci.c