소스 검색

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 <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Kenji Kaneshige 17 년 전
부모
커밋
b143b3cc82
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      drivers/pci/hotplug/pciehp_core.c

+ 0 - 1
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);
 	INIT_LIST_HEAD(&ctrl->slot_list);
 
 
 	pdev = dev->port;
 	pdev = dev->port;
-	ctrl->pci_dev = pdev;
 
 
 	rc = pcie_init(ctrl, dev);
 	rc = pcie_init(ctrl, dev);
 	if (rc) {
 	if (rc) {