From: Jiang Liu Date: Sat, 25 May 2013 13:48:36 +0000 (+0800) Subject: PCI: Drop redundant setting of bus->is_added in virtfn_add_bus() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d35329d9f17f05277f2718eb54402dea3e833d19;p=linux-beck.git PCI: Drop redundant setting of bus->is_added in virtfn_add_bus() The flag pci_bus->is_added is used to guard invocation of pcibios_fixup_bus(pci_bus). When virtfn_add_bus() is called, the pci_bus->is_added flag has already been set, so remove the redundant bus->is_added = 1; Signed-off-by: Jiang Liu Signed-off-by: Bjorn Helgaas Cc: Donald Dutile Cc: Yinghai Lu Cc: Ram Pai --- diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index 2652ca00fae7..8f1e1174b71f 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; }