PCI core API pci_dev_id() can be used to get the BDF number for a pci device. Use the API to simplify the code. Jialin Zhang (3): scsi: mvumi: Use pci_dev_id() to simplify the code scsi: megaraid_sas: Use pci_dev_id() to simplify the code scsi: megaraid: Use pci_dev_id() to simplify the code drivers/scsi/megaraid/megaraid_mbox.c | 2 +- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- drivers/scsi/mvumi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.25.1