/* Return: Pointer to the newly allocated completion-queue event if successful NULL otherwise.  */
struct lpfc_cq_event* __lpfc_sli4_cq_event_alloc(struct lpfc_hba *phba)
/* Return: Pointer to the newly allocated completion-queue event if successful NULL otherwise.  */
struct lpfc_cq_event* __lpfc_sli4_cq_event_alloc(struct lpfc_hba *phba)
{
	struct lpfc_cq_event *cq_event = NULL;
	list_remove_head(&phba->sli4_hba.sp_cqe_event_pool, cq_event,
			 struct lpfc_cq_event, list);
	return cq_event;
}