/* Returns: 0 on success / other on failure  */
static int ibmvfc_alloc_targets(struct ibmvfc_host *vhost)
/* Returns: 0 on success / other on failure  */
static int ibmvfc_alloc_targets(struct ibmvfc_host *vhost)
{
	int i, rc;
	for (i = 0, rc = 0; !rc && i < vhost->num_targets; i++)
		rc = ibmvfc_alloc_target(vhost,
					 vhost->disc_buf->scsi_id[i] & IBMVFC_DISC_TGT_SCSI_ID_MASK);
	return rc;
}