mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
convert to zalloc
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user