RDMA/qib: drop qib_pci_link_reset()
authorCao jin <caoj.fnst@cn.fujitsu.com>
Mon, 19 Dec 2016 06:46:35 +0000 (14:46 +0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 12 Jan 2017 16:38:41 +0000 (11:38 -0500)
In AER recovery, pci_error_handlers.link_reset() is never called,
drop it now.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_pcie.c

index 6abe1c621aa4220cb8ca554ef6fee42508915ea7..c379b8342a0909ec9a3f086cd96297b220e2a2a5 100644 (file)
@@ -682,13 +682,6 @@ qib_pci_slot_reset(struct pci_dev *pdev)
        return PCI_ERS_RESULT_CAN_RECOVER;
 }
 
-static pci_ers_result_t
-qib_pci_link_reset(struct pci_dev *pdev)
-{
-       qib_devinfo(pdev, "QIB link_reset function called, ignored\n");
-       return PCI_ERS_RESULT_CAN_RECOVER;
-}
-
 static void
 qib_pci_resume(struct pci_dev *pdev)
 {
@@ -707,7 +700,6 @@ qib_pci_resume(struct pci_dev *pdev)
 const struct pci_error_handlers qib_pci_err_handler = {
        .error_detected = qib_pci_error_detected,
        .mmio_enabled = qib_pci_mmio_enabled,
-       .link_reset = qib_pci_link_reset,
        .slot_reset = qib_pci_slot_reset,
        .resume = qib_pci_resume,
 };