david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:25:03 +02:00
parent 636bd2cd0a
commit 7297f04481
1 changed files with 1 additions and 2 deletions

View File

@ -90,12 +90,11 @@ static int mcabus_probe ( struct root_device *rootdev ) {
for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) {
/* Allocate struct mca_device */
if ( ! mca )
mca = malloc ( sizeof ( *mca ) );
mca = zalloc ( sizeof ( *mca ) );
if ( ! mca ) {
rc = -ENOMEM;
goto err;
}
memset ( mca, 0, sizeof ( *mca ) );
mca->slot = slot;
/* Make sure motherboard setup is off */