diff options
| author | Holger Lubitz | 2007-06-18 01:25:05 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-06 20:42:05 +0200 |
| commit | 5ce16b03a1cb036ad0ab818473fe8f9c158949ed (patch) | |
| tree | 212b9d4e325935f6aab6a5fbfaa32903f2cbbd3c /src | |
| parent | convert to zalloc (diff) | |
| download | ipxe-5ce16b03a1cb036ad0ab818473fe8f9c158949ed.tar.gz ipxe-5ce16b03a1cb036ad0ab818473fe8f9c158949ed.tar.xz ipxe-5ce16b03a1cb036ad0ab818473fe8f9c158949ed.zip | |
convert to zalloc
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/bus/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
