These assignments are actually important, as they might be what is setting the return value to VMI_FAILURE.