http://git.etherboot.org
/
people
/
xl0
/
gpxe-arm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7297f04
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:25:05 +0000
(
01:25
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:42:05 +0000
(20:42 +0200)
src/drivers/bus/pci.c
patch
|
blob
|
history
diff --git
a/src/drivers/bus/pci.c
b/src/drivers/bus/pci.c
index
967441a
..
1f0ad52
100644
(file)
--- 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 =
m
alloc ( sizeof ( *pci ) );
+ pci =
z
alloc ( sizeof ( *pci ) );
if ( ! pci ) {
rc = -ENOMEM;
goto err;
}
- memset ( pci, 0, sizeof ( *pci ) );
pci->bus = bus;
pci->devfn = devfn;