http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4bea78
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:57 +0000
(
01:24
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:42:05 +0000
(20:42 +0200)
src/drivers/bus/isa.c
patch
|
blob
|
history
diff --git
a/src/drivers/bus/isa.c
b/src/drivers/bus/isa.c
index
a4105fd
..
edcf05b
100644
(file)
--- a/
src/drivers/bus/isa.c
+++ b/
src/drivers/bus/isa.c
@@
-105,12
+105,11
@@
static int isabus_probe ( struct root_device *rootdev ) {
ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
/* Allocate struct isa_device */
if ( ! isa )
- isa =
m
alloc ( sizeof ( *isa ) );
+ isa =
z
alloc ( sizeof ( *isa ) );
if ( ! isa ) {
rc = -ENOMEM;
goto err;
}
- memset ( isa, 0, sizeof ( *isa ) );
isa->driver = driver;
isa->ioaddr = ISA_IOADDR ( driver, ioidx );