2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:24:54 +02:00
parent 6def8592ed
commit a4bea78974

View File

@ -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 );