File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
arch/powerpc/platforms/powernv Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -253,9 +253,9 @@ void pnv_pci_ioda_fixup_iov(struct pci_dev *pdev)
253
253
resource_size_t pnv_pci_iov_resource_alignment (struct pci_dev * pdev ,
254
254
int resno )
255
255
{
256
+ resource_size_t align = pci_iov_resource_size (pdev , resno );
256
257
struct pnv_phb * phb = pci_bus_to_pnvhb (pdev -> bus );
257
258
struct pnv_iov_data * iov = pnv_iov_get (pdev );
258
- resource_size_t align ;
259
259
260
260
/*
261
261
* iov can be null if we have an SR-IOV device with IOV BAR that can't
@@ -266,8 +266,6 @@ resource_size_t pnv_pci_iov_resource_alignment(struct pci_dev *pdev,
266
266
if (!iov )
267
267
return align ;
268
268
269
- align = pci_iov_resource_size (pdev , resno );
270
-
271
269
/*
272
270
* If we're using single mode then we can just use the native VF BAR
273
271
* alignment. We validated that it's possible to use a single PE
You can’t perform that action at this time.
0 commit comments