david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:25:07 +02:00
parent 5ce16b03a1
commit 68add6e814
1 changed files with 1 additions and 2 deletions

View File

@ -347,12 +347,11 @@ static int t509bus_probe ( struct root_device *rootdev ) {
for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
/* Allocate struct t509_device */
if ( ! t509 )
t509 = malloc ( sizeof ( *t509 ) );
t509 = zalloc ( sizeof ( *t509 ) );
if ( ! t509 ) {
rc = -ENOMEM;
goto err;
}
memset ( t509, 0, sizeof ( *t509 ) );
t509->tag = tag;
/* Send the ID sequence */