Skip to content
Commit 5d344c5e authored by Zheng Zengkai's avatar Zheng Zengkai Committed by Martin K. Petersen
Browse files

scsi: pmcraid: Use pci_dev_id() to simplify the code



PCI core API pci_dev_id() can be used to get the BDF number for a PCI
device. We don't need to compose it manually. Use pci_dev_id() to simplify
the code a little bit.

Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Link: https://lore.kernel.org/r/20230811111310.32364-1-zhengzengkai@huawei.com
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent bb1459cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment