summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/libpci/libpci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/payloads/libpayload/libpci/libpci.c b/payloads/libpayload/libpci/libpci.c
index 27347e3bf8..3e3513ccb0 100644
--- a/payloads/libpayload/libpci/libpci.c
+++ b/payloads/libpayload/libpci/libpci.c
@@ -72,8 +72,7 @@ int pci_write_long(struct pci_dev *dev, int pos, u32 data)
struct pci_access *pci_alloc(void)
{
- struct pci_access *pacc = malloc(sizeof(*pacc));
- return pacc;
+ return malloc(sizeof(struct pci_access));
}
void pci_init(struct pci_access *pacc)