The flag pci_bus->is_added is used to guard invoke of
pcibios_fixup_bus(pci_bus). And when virtfn_add_bus() is called,
pci_bus->is_added flag has already been set, so remove the redandunt
        bus->is_added = 1;

Signed-off-by: Jiang Liu <[email protected]>
Cc: Donald Dutile <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Ram Pai <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
 drivers/pci/iov.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 2652ca0..8f1e117 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -47,7 +47,6 @@ static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, 
int busnr)
                return NULL;
 
        pci_bus_insert_busn_res(child, busnr, busnr);
-       bus->is_added = 1;
 
        return child;
 }
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to