Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key

This commit is contained in:
Howard Chu 2002-01-16 07:39:00 +00:00
parent 21c8846e64
commit 913c321a7e

View file

@ -936,12 +936,11 @@ idl_delete_key (
/* We have to go through an indirect block and find the ID
in the list of IDL's
*/
cont_alloc( &data, &key );
#ifndef USE_INDIRECT_NIDS
for ( nids = 0; !ID_BLOCK_NOID(idl, nids); nids++ )
; /* NULL */
cont_alloc( &data, &key );
for ( j = 0; j<nids; j++ )
#else
nids = ID_BLOCK_NIDS(idl);