From: Holger Lubitz Date: Sun, 17 Jun 2007 23:25:00 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/drivers/bus/isapnp.c b/src/drivers/bus/isapnp.c index 7903208d0..a19beb808 100644 --- a/src/drivers/bus/isapnp.c +++ b/src/drivers/bus/isapnp.c @@ -653,12 +653,11 @@ static int isapnpbus_probe ( struct root_device *rootdev ) { /* Allocate struct isapnp_device */ if ( ! isapnp ) - isapnp = malloc ( sizeof ( *isapnp ) ); + isapnp = zalloc ( sizeof ( *isapnp ) ); if ( ! isapnp ) { rc = -ENOMEM; goto err; } - memset ( isapnp, 0, sizeof ( *isapnp ) ); isapnp->csn = csn; isapnp->logdev = logdev;