From: Holger Lubitz Date: Sun, 17 Jun 2007 23:24:14 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb61774ee4d8544f92333f898f4c01fe4c701c24;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/arch/i386/drivers/net/undi.c b/src/arch/i386/drivers/net/undi.c index 648835cff..1090cc94a 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 */