convert to zalloc
authorHolger Lubitz <hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:57 +0000 (01:24 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:42:05 +0000 (20:42 +0200)
src/drivers/bus/isa.c

index a4105fd..edcf05b 100644 (file)
@@ -105,12 +105,11 @@ static int isabus_probe ( struct root_device *rootdev ) {
                      ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
                        /* Allocate struct isa_device */
                        if ( ! isa )
-                               isa = malloc ( sizeof ( *isa ) );
+                               isa = zalloc ( sizeof ( *isa ) );
                        if ( ! isa ) {
                                rc = -ENOMEM;
                                goto err;
                        }
-                       memset ( isa, 0, sizeof ( *isa ) );
                        isa->driver = driver;
                        isa->ioaddr = ISA_IOADDR ( driver, ioidx );