aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/bus/eisa.c
diff options
context:
space:
mode:
authorHolger Lubitz <hal@duncan.ol.sub.de>2007-06-18 01:24:54 +0200
committerHolger Lubitz <hal@duncan.ol.sub.de>2007-07-06 20:42:05 +0200
commita4bea78974620820774a59f49646eafbdb481148 (patch)
tree1137a05afc59817c09b2fe8db8c6fd5de17e4c21 /src/drivers/bus/eisa.c
parent6def8592ed406e4ecc3289f22039bf3cdfdcf05c (diff)
downloadipxe-a4bea78974620820774a59f49646eafbdb481148.tar.gz
convert to zalloc
Diffstat (limited to 'src/drivers/bus/eisa.c')
-rw-r--r--src/drivers/bus/eisa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c
index d9d02d727..eed99ffed 100644
--- a/src/drivers/bus/eisa.c
+++ b/src/drivers/bus/eisa.c
@@ -106,12 +106,11 @@ static int eisabus_probe ( struct root_device *rootdev ) {
for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
/* Allocate struct eisa_device */
if ( ! eisa )
- eisa = malloc ( sizeof ( *eisa ) );
+ eisa = zalloc ( sizeof ( *eisa ) );
if ( ! eisa ) {
rc = -ENOMEM;
goto err;
}
- memset ( eisa, 0, sizeof ( *eisa ) );
eisa->slot = slot;
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );