projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
517f8eb
)
scsi: mvumi: Use pci_dev_id() to simplify the code
author
Jialin Zhang
<zhangjialin11@huawei.com>
Tue, 15 Aug 2023 02:54:17 +0000
(10:54 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Mon, 21 Aug 2023 20:47:44 +0000
(16:47 -0400)
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 mannally. Use pci_dev_id() to simplify
the code a little bit.
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com>
Link:
https://lore.kernel.org/r/20230815025419.3523236-2-zhangjialin11@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mvumi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mvumi.c
b/drivers/scsi/mvumi.c
index
73aa705
..
97f9d2f
100644
(file)
--- a/
drivers/scsi/mvumi.c
+++ b/
drivers/scsi/mvumi.c
@@
-2490,7
+2490,7
@@
static int mvumi_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
mhba->pdev = pdev;
mhba->shost = host;
- mhba->unique_id = p
dev->bus->number << 8 | pdev->devfn
;
+ mhba->unique_id = p
ci_dev_id(pdev)
;
ret = mvumi_init_fw(mhba);
if (ret)