mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Revert "convert to zalloc"
This reverts commit 5ce16b03a1cb036ad0ab818473fe8f9c158949ed.
This commit is contained in:
parent
a4d3476e0e
commit
a772dc4a2a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user