PCI: hv: Remove the useless hv_pcichild_state from struct hv_pci_dev
authorDexuan Cui <decui@microsoft.com>
Thu, 15 Jun 2023 04:44:49 +0000 (21:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 09:12:23 +0000 (11:12 +0200)
commit5c09925b187931f4106edb7a70d6c23ab0b802c5
treef833e310ae6692a1c88157b4fd1e36572661fc58
parentda2fff20d92db19023b1f700b7f1a6f5c7532c04
PCI: hv: Remove the useless hv_pcichild_state from struct hv_pci_dev

commit add9195e69c94b32e96f78c2f9cea68f0e850b3f upstream.

The hpdev->state is never really useful. The only use in
hv_pci_eject_device() and hv_eject_device_work() is not really necessary.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230615044451.5580-4-decui@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/pci-hyperv.c