diff options
author | Holger Lubitz | 2007-06-18 01:24:14 +0200 |
---|---|---|
committer | Holger Lubitz | 2007-07-06 20:19:06 +0200 |
commit | bb61774ee4d8544f92333f898f4c01fe4c701c24 (patch) | |
tree | 814c36a0c0970af2ed239284c8c194b01c390119 /src | |
parent | Apply global DHCP options when register_dhcp_options() is called. Do (diff) | |
download | ipxe-bb61774ee4d8544f92333f898f4c01fe4c701c24.tar.gz ipxe-bb61774ee4d8544f92333f898f4c01fe4c701c24.tar.xz ipxe-bb61774ee4d8544f92333f898f4c01fe4c701c24.zip |
convert to zalloc
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/i386/drivers/net/undi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/drivers/net/undi.c b/src/arch/i386/drivers/net/undi.c index 648835cf..1090cc94 100644 --- a/src/arch/i386/drivers/net/undi.c +++ b/src/arch/i386/drivers/net/undi.c @@ -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 */ |