mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Revert "convert to zalloc"
This reverts commit a4bea78974620820774a59f49646eafbdb481148.
This commit is contained in:
parent
e3c72a3438
commit
85e04b5837
@ -106,11 +106,12 @@ 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 = zalloc ( sizeof ( *eisa ) );
|
||||
eisa = malloc ( sizeof ( *eisa ) );
|
||||
if ( ! eisa ) {
|
||||
rc = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
memset ( eisa, 0, sizeof ( *eisa ) );
|
||||
eisa->slot = slot;
|
||||
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user