/* Return codes pointer to the driver internal queue element for mailbox command.  */
LPFC_MBOXQ_t* lpfc_mbox_get(struct lpfc_hba *phba)
/* Return codes pointer to the driver internal queue element for mailbox command.  */
LPFC_MBOXQ_t* lpfc_mbox_get(struct lpfc_hba *phba)
{
	LPFC_MBOXQ_t *mbq = NULL;
	struct lpfc_sli *psli = &phba->sli;
	list_remove_head((&psli->mboxq), mbq, LPFC_MBOXQ_t, list);
	if (mbq)
		psli->mboxq_cnt--;
	return mbq;
}