From: Holger Lubitz Date: Sun, 17 Jun 2007 23:25:03 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7297f04481f6737b0a40161da6d8413ca0f478d2;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c index 375a68344..3f4421111 100644 --- a/src/drivers/bus/mca.c +++ b/src/drivers/bus/mca.c @@ -90,12 +90,11 @@ static int mcabus_probe ( struct root_device *rootdev ) { for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) { /* Allocate struct mca_device */ if ( ! mca ) - mca = malloc ( sizeof ( *mca ) ); + mca = zalloc ( sizeof ( *mca ) ); if ( ! mca ) { rc = -ENOMEM; goto err; } - memset ( mca, 0, sizeof ( *mca ) ); mca->slot = slot; /* Make sure motherboard setup is off */