From: Holger Lubitz Date: Sun, 17 Jun 2007 23:25:05 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce16b03a1cb036ad0ab818473fe8f9c158949ed;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c index 967441acd..1f0ad5211 100644 --- a/src/drivers/bus/pci.c +++ b/src/drivers/bus/pci.c @@ -245,12 +245,11 @@ static int pcibus_probe ( struct root_device *rootdev ) { /* Allocate struct pci_device */ if ( ! pci ) - pci = malloc ( sizeof ( *pci ) ); + pci = zalloc ( sizeof ( *pci ) ); if ( ! pci ) { rc = -ENOMEM; goto err; } - memset ( pci, 0, sizeof ( *pci ) ); pci->bus = bus; pci->devfn = devfn;