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 <jiang....@huawei.com> Cc: Donald Dutile <ddut...@redhat.com> Cc: Yinghai Lu <ying...@kernel.org> Cc: Ram Pai <linux...@us.ibm.com> Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/