File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -545,19 +545,10 @@ struct hv_dr_state {
545
545
struct hv_pcidev_description func [];
546
546
};
547
547
548
- enum hv_pcichild_state {
549
- hv_pcichild_init = 0 ,
550
- hv_pcichild_requirements ,
551
- hv_pcichild_resourced ,
552
- hv_pcichild_ejecting ,
553
- hv_pcichild_maximum
554
- };
555
-
556
548
struct hv_pci_dev {
557
549
/* List protected by pci_rescan_remove_lock */
558
550
struct list_head list_entry ;
559
551
refcount_t refs ;
560
- enum hv_pcichild_state state ;
561
552
struct pci_slot * pci_slot ;
562
553
struct hv_pcidev_description desc ;
563
554
bool reported_missing ;
@@ -2843,8 +2834,6 @@ static void hv_eject_device_work(struct work_struct *work)
2843
2834
hpdev = container_of (work , struct hv_pci_dev , wrk );
2844
2835
hbus = hpdev -> hbus ;
2845
2836
2846
- WARN_ON (hpdev -> state != hv_pcichild_ejecting );
2847
-
2848
2837
/*
2849
2838
* Ejection can come before or after the PCI bus has been set up, so
2850
2839
* attempt to find it and tear down the bus state, if it exists. This
@@ -2901,7 +2890,6 @@ static void hv_pci_eject_device(struct hv_pci_dev *hpdev)
2901
2890
return ;
2902
2891
}
2903
2892
2904
- hpdev -> state = hv_pcichild_ejecting ;
2905
2893
get_pcichild (hpdev );
2906
2894
INIT_WORK (& hpdev -> wrk , hv_eject_device_work );
2907
2895
queue_work (hbus -> wq , & hpdev -> wrk );
You can’t perform that action at this time.
0 commit comments