/* This function returns 0 if the device or the PCI slot is in a state that interrupt should be handled, otherwise -EIO.  */
static int lpfc_intr_state_check(struct lpfc_hba *phba)
/* This function returns 0 if the device or the PCI slot is in a state that interrupt should be handled, otherwise -EIO.  */
static int lpfc_intr_state_check(struct lpfc_hba *phba)
{
	if (unlikely(pci_channel_offline(phba->pcidev)))
		return -EIO;
	phba->sli.slistat.sli_intr++;
	if (unlikely(phba->link_state < LPFC_LINK_DOWN))
		return -EIO;
	return 0;
}