projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e558843
)
PCI: drop a redundant variable from pci_add_device()
author
Jan Beulich
<jbeulich@suse.com>
Tue, 28 Apr 2020 15:49:55 +0000
(17:49 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Tue, 28 Apr 2020 15:49:55 +0000
(17:49 +0200)
Surrounding code already uses the available alternative, after all.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/drivers/passthrough/pci.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/pci.c
b/xen/drivers/passthrough/pci.c
index 5660f7e1c2f52152c639a6882afcda957a633d49..15114e7cbcf547885ba05679384c0812326f9b77 100644
(file)
--- a/
xen/drivers/passthrough/pci.c
+++ b/
xen/drivers/passthrough/pci.c
@@
-760,7
+760,6
@@
int pci_add_device(u16 seg, u8 bus, u8 devfn,
{
unsigned int idx = pos + PCI_SRIOV_BAR + i * 4;
uint32_t bar = pci_conf_read32(pdev->sbdf, idx);
- pci_sbdf_t sbdf = PCI_SBDF3(seg, bus, devfn);
if ( (bar & PCI_BASE_ADDRESS_SPACE) ==
PCI_BASE_ADDRESS_SPACE_IO )
@@
-771,7
+770,8
@@
int pci_add_device(u16 seg, u8 bus, u8 devfn,
seg, bus, slot, func, i);
continue;
}
- ret = pci_size_mem_bar(sbdf, idx, NULL, &pdev->vf_rlen[i],
+ ret = pci_size_mem_bar(pdev->sbdf, idx, NULL,
+ &pdev->vf_rlen[i],
PCI_BAR_VF |
((i == PCI_SRIOV_NUM_BARS - 1) ?
PCI_BAR_LAST : 0));