Skip to content

Commit

Permalink
PCI: Drop redundant setting of bus->is_added in virtfn_add_bus()
Browse files Browse the repository at this point in the history
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 <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Donald Dutile <ddutile@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Ram Pai <linuxram@us.ibm.com>
  • Loading branch information
Jiang Liu authored and Bjorn Helgaas committed Jun 14, 2013
1 parent c13e396 commit d35329d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/iov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d35329d

Please sign in to comment.