powerpc/eeh: Cleanup unused field in eeh_dev
authorSam Bobroff <sbobroff@linux.ibm.com>
Wed, 12 Sep 2018 01:23:24 +0000 (11:23 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
The 'bus' member of struct eeh_dev is assigned to once but never used,
so remove it.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh_driver.c

index 147f0117e56f5701cab3ea54cb18e7a896f46b57..703d1f96ee8b845a9d5be78f58e8fcfae5f513c7 100644 (file)
@@ -147,7 +147,6 @@ struct eeh_dev {
        struct pci_dev *pdev;           /* Associated PCI device        */
        bool in_error;                  /* Error flag for edev          */
        struct pci_dev *physfn;         /* Associated SRIOV PF          */
-       struct pci_bus *bus;            /* PCI bus for partial hotplug  */
 };
 
 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev)
index 4115d353c34924224c081f15e6adc30205928af1..7766766bab57944b74b4710d83274dc7aea942fe 100644 (file)
@@ -543,7 +543,6 @@ static void *eeh_rmv_device(struct eeh_dev *edev, void *userdata)
        /* Remove it from PCI subsystem */
        pr_debug("EEH: Removing %s without EEH sensitive driver\n",
                 pci_name(dev));
-       edev->bus = dev->bus;
        edev->mode |= EEH_DEV_DISCONNECTED;
        if (removed)
                (*removed)++;