Skip to content

Commit

Permalink
pciehp: remove redundant pci_dev initialization
Browse files Browse the repository at this point in the history
Remove the redundant initialization of pci_dev member of struct
controller in pciehp_probe(). It is initialized in pcie_init().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Jun 10, 2008
1 parent e3f2bae commit b143b3c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/hotplug/pciehp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_
INIT_LIST_HEAD(&ctrl->slot_list);

pdev = dev->port;
ctrl->pci_dev = pdev;

rc = pcie_init(ctrl, dev);
if (rc) {
Expand Down

0 comments on commit b143b3c

Please sign in to comment.