david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:24:14 +02:00
parent 934b70d62c
commit bb61774ee4
1 changed files with 1 additions and 2 deletions

View File

@ -72,10 +72,9 @@ static int undipci_probe ( struct pci_device *pci,
return -ENOTTY;
/* Allocate UNDI device structure */
undi = malloc ( sizeof ( *undi ) );
undi = zalloc ( sizeof ( *undi ) );
if ( ! undi )
return -ENOMEM;
memset ( undi, 0, sizeof ( *undi ) );
pci_set_drvdata ( pci, undi );
/* Find/create our pixie */