Skip to content

Commit 420ac76

Browse files
ij-intelbjorn-helgaas
authored andcommitted
scsi: lpfc: Use PCI_HEADER_TYPE_MFD instead of literal
Replace literal 0x80 with PCI_HEADER_TYPE_MFD. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 3773343 commit 420ac76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_sli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4875,7 +4875,7 @@ void lpfc_reset_barrier(struct lpfc_hba *phba)
48754875
lockdep_assert_held(&phba->hbalock);
48764876

48774877
pci_read_config_byte(phba->pcidev, PCI_HEADER_TYPE, &hdrtype);
4878-
if (hdrtype != 0x80 ||
4878+
if (hdrtype != PCI_HEADER_TYPE_MFD ||
48794879
(FC_JEDEC_ID(phba->vpd.rev.biuRev) != HELIOS_JEDEC_ID &&
48804880
FC_JEDEC_ID(phba->vpd.rev.biuRev) != THOR_JEDEC_ID))
48814881
return;

0 commit comments

Comments
 (0)