/* This routine is invoked to free the pool of completion queue events at driver unload time. Note that, it is the responsibility of the driver cleanup routine to free all the outstanding completion-queue events allocated from this pool back into the pool before invoking this routine to destroy the pool.  */
static void lpfc_sli4_cq_event_pool_destroy(struct lpfc_hba *)
/* This routine is invoked to free the pool of completion queue events at driver unload time. Note that, it is the responsibility of the driver cleanup routine to free all the outstanding completion-queue events allocated from this pool back into the pool before invoking this routine to destroy the pool.  */
static void lpfc_sli4_cq_event_pool_destroy(struct lpfc_hba *)
{
	struct lpfc_cq_event *cq_event, *next_cq_event;
	list_for_each_entry_safe(cq_event, next_cq_event,
				 &phba->sli4_hba.sp_cqe_event_pool, list) {
		list_del(&cq_event->list);
		kfree(cq_event);
	}
}