From a4bea78974620820774a59f49646eafbdb481148 Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Mon, 18 Jun 2007 01:24:54 +0200 Subject: [PATCH] convert to zalloc --- src/drivers/bus/eisa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c index d9d02d72..eed99ffe 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 );