From: Kenji Kaneshige Date: Wed, 28 May 2008 05:56:00 +0000 (+0900) Subject: pciehp: remove redundant pci_dev initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b143b3cc82fac459feb1abdffb1d77be9805adaa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pciehp: remove redundant pci_dev initialization 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 Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index 86d04c694000..54553b187b19 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c @@ -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) {