diff --git a/src/drv/ansi/drvEpvxi.c b/src/drv/ansi/drvEpvxi.c index 3ee7c637e..edc42adcc 100644 --- a/src/drv/ansi/drvEpvxi.c +++ b/src/drv/ansi/drvEpvxi.c @@ -1449,6 +1449,22 @@ VXIE *pvxie return; } + /* + * find out how many DC devices are in the system + * and there worst case (blocked address) alignment + */ + status = vxi_count_dc_devices( + pvxie, + &nDC, + &maxInBlockedDC); + if (status) { + return; + } + + if(nDC < 1){ + return; + } + /* * if unanchored force them to all be in one * contiguous block @@ -1456,20 +1472,6 @@ VXIE *pvxie prealloc = FALSE; if(!pvxie->la_mapped){ - /* - * find out how many DC devices are in the system - * and there worst case (blocked address) alignment - */ - status = vxi_count_dc_devices( - pvxie, - &nDC, - &maxInBlockedDC); - if(status){ - return; - } - if(nDC < 1){ - return; - } /* * allocate with worst case (blocked address) alignment */