david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Revert "convert to zalloc"

This reverts commit 5ce16b03a1.
This commit is contained in:
Holger Lubitz 2007-07-07 01:55:23 +02:00
parent a4d3476e0e
commit a772dc4a2a
1 changed files with 2 additions and 1 deletions

View File

@ -245,11 +245,12 @@ static int pcibus_probe ( struct root_device *rootdev ) {
/* Allocate struct pci_device */
if ( ! pci )
pci = zalloc ( sizeof ( *pci ) );
pci = malloc ( sizeof ( *pci ) );
if ( ! pci ) {
rc = -ENOMEM;
goto err;
}
memset ( pci, 0, sizeof ( *pci ) );
pci->bus = bus;
pci->devfn = devfn;