]> git.itanic.dy.fi Git - linux-stable/commitdiff
scsi: lpfc: Use PCI_HEADER_TYPE_MFD instead of literal
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 24 Nov 2023 09:09:16 +0000 (11:09 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 1 Dec 2023 22:50:59 +0000 (16:50 -0600)
Replace literal 0x80 with PCI_HEADER_TYPE_MFD.

Link: https://lore.kernel.org/r/20231124090919.23687-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/scsi/lpfc/lpfc_sli.c

index 9386e7b447506915110a8ba0299538bad1438ad0..4ac6afd3c2fe9782db7a752e4fa97b5fcf463e91 100644 (file)
@@ -4875,7 +4875,7 @@ void lpfc_reset_barrier(struct lpfc_hba *phba)
        lockdep_assert_held(&phba->hbalock);
 
        pci_read_config_byte(phba->pcidev, PCI_HEADER_TYPE, &hdrtype);
-       if (hdrtype != 0x80 ||
+       if (hdrtype != PCI_HEADER_TYPE_MFD ||
            (FC_JEDEC_ID(phba->vpd.rev.biuRev) != HELIOS_JEDEC_ID &&
             FC_JEDEC_ID(phba->vpd.rev.biuRev) != THOR_JEDEC_ID))
                return;