diff options
author | Holger Lubitz | 2007-06-18 01:25:03 +0200 |
---|---|---|
committer | Holger Lubitz | 2007-07-06 20:42:05 +0200 |
commit | 7297f04481f6737b0a40161da6d8413ca0f478d2 (patch) | |
tree | ff69088d8363521d6f0e028ae20d93e2bb0a9936 /src/drivers/bus/mca.c | |
parent | convert to zalloc (diff) | |
download | ipxe-7297f04481f6737b0a40161da6d8413ca0f478d2.tar.gz ipxe-7297f04481f6737b0a40161da6d8413ca0f478d2.tar.xz ipxe-7297f04481f6737b0a40161da6d8413ca0f478d2.zip |
convert to zalloc
Diffstat (limited to 'src/drivers/bus/mca.c')
-rw-r--r-- | src/drivers/bus/mca.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c index 375a6834..3f442111 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 */ |