All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: drop a redundant variable from pci_add_device()
@ 2020-04-28 12:59 Jan Beulich
  2020-04-28 14:07 ` Andrew Cooper
  2020-04-28 14:34 ` Paul Durrant
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Beulich @ 2020-04-28 12:59 UTC (permalink / raw)
  To: xen-devel; +Cc: Paul Durrant

Surrounding code already uses the available alternative, after all.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- 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 d
             {
                 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 d
                            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));


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PCI: drop a redundant variable from pci_add_device()
  2020-04-28 12:59 [PATCH] PCI: drop a redundant variable from pci_add_device() Jan Beulich
@ 2020-04-28 14:07 ` Andrew Cooper
  2020-04-28 14:34 ` Paul Durrant
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2020-04-28 14:07 UTC (permalink / raw)
  To: Jan Beulich, xen-devel; +Cc: Paul Durrant

On 28/04/2020 13:59, Jan Beulich wrote:
> 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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] PCI: drop a redundant variable from pci_add_device()
  2020-04-28 12:59 [PATCH] PCI: drop a redundant variable from pci_add_device() Jan Beulich
  2020-04-28 14:07 ` Andrew Cooper
@ 2020-04-28 14:34 ` Paul Durrant
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Durrant @ 2020-04-28 14:34 UTC (permalink / raw)
  To: 'Jan Beulich', xen-devel

> -----Original Message-----
> From: Jan Beulich <jbeulich@suse.com>
> Sent: 28 April 2020 14:00
> To: xen-devel@lists.xenproject.org
> Cc: Paul Durrant <paul@xen.org>
> Subject: [PATCH] PCI: drop a redundant variable from pci_add_device()
> 
> Surrounding code already uses the available alternative, after all.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> 

Reviewed-by: Paul Durrant <paul@xen.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-28 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 12:59 [PATCH] PCI: drop a redundant variable from pci_add_device() Jan Beulich
2020-04-28 14:07 ` Andrew Cooper
2020-04-28 14:34 ` Paul Durrant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.