rem: if( result ) { KPrintF( "AllocResourceIteratorList() succeeded\n" ); } else { KPrintF( "AllocResourceIteratorList() failed\n" ); }
context: AllocResourceIteratorList( struct MinList*         resource_list,                           struct ResourceContext* ctx ){  struct ResourceIteratorList* result;  KPrintF( "AllocResourceIteratorList()\n" );  result = AllocVec( sizeof( *result ), MEMF_PUBLIC | MEMF_CLEAR );    if( result != NULL )  {    struct ISAPNP_Resource* r;    NewList( (struct List*) &result->m_ResourceIterators );        r = (struct ISAPNP_Resource*) resource_list->mlh_Head;        while( r->m_MinNode.mln_Succ != NULL )    {      struct ResourceIterator* iter;            iter = AllocResourceIterator( r, ctx );      if( iter == NULL )      {        FreeResourceIteratorList( result, ctx );        result = NULL;        break;      }            AddTail( (struct List*) &result->m_ResourceIterators,               (struct Node*) iter );            r = (struct ISAPNP_Resource*) r->m_MinNode.mln_Succ;    }  }if( result ){  KPrintF( "AllocResourceIteratorList() succeeded\n" );}else{  KPrintF( "AllocResourceIteratorList() failed\n" );}  return result;}