david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Revert "convert to zalloc"

This reverts commit 3414fd8df8.
This commit is contained in:
Holger Lubitz 2007-07-07 01:56:27 +02:00
parent ac323c5e4d
commit e3c72a3438
1 changed files with 2 additions and 1 deletions

View File

@ -105,11 +105,12 @@ static int isabus_probe ( struct root_device *rootdev ) {
ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
/* Allocate struct isa_device */
if ( ! isa )
isa = zalloc ( sizeof ( *isa ) );
isa = malloc ( sizeof ( *isa ) );
if ( ! isa ) {
rc = -ENOMEM;
goto err;
}
memset ( isa, 0, sizeof ( *isa ) );
isa->driver = driver;
isa->ioaddr = ISA_IOADDR ( driver, ioidx );