File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
drivers/pci/endpoint/functions Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -841,12 +841,6 @@ static int pci_epf_test_alloc_space(struct pci_epf *epf)
841
841
}
842
842
test_reg_size = test_reg_bar_size + msix_table_size + pba_size ;
843
843
844
- if (epc_features -> bar_fixed_size [test_reg_bar ]) {
845
- if (test_reg_size > bar_size [test_reg_bar ])
846
- return - ENOMEM ;
847
- test_reg_size = bar_size [test_reg_bar ];
848
- }
849
-
850
844
base = pci_epf_alloc_space (epf , test_reg_size , test_reg_bar ,
851
845
epc_features , PRIMARY_INTERFACE );
852
846
if (!base ) {
@@ -888,8 +882,6 @@ static void pci_epf_configure_bar(struct pci_epf *epf,
888
882
bar_fixed_64bit = !!(epc_features -> bar_fixed_64bit & (1 << i ));
889
883
if (bar_fixed_64bit )
890
884
epf_bar -> flags |= PCI_BASE_ADDRESS_MEM_TYPE_64 ;
891
- if (epc_features -> bar_fixed_size [i ])
892
- bar_size [i ] = epc_features -> bar_fixed_size [i ];
893
885
}
894
886
}
895
887
You can’t perform that action at this time.
0 commit comments