/* This routine is invoked to allocate the driver's active sgl memory. This array will hold the sglq_entry's for active IOs.  */
static int lpfc_init_active_sgl_array(struct lpfc_hba *)
/* This routine is invoked to allocate the driver's active sgl memory. This array will hold the sglq_entry's for active IOs.  */
static int lpfc_init_active_sgl_array(struct lpfc_hba *)
{
	int size;
	size = sizeof(struct lpfc_sglq *);
	size *= phba->sli4_hba.max_cfg_param.max_xri;
	phba->sli4_hba.lpfc_sglq_active_list =
		kzalloc(size, GFP_KERNEL);
	if (!phba->sli4_hba.lpfc_sglq_active_list)
		return -ENOMEM;
	return 0;
}