Commit 5b86ac9e authored by Sam Bobroff's avatar Sam Bobroff Committed by Michael Ellerman

powerpc/eeh: Remove misleading test in eeh_handle_normal_event()

Remove a test that checks if "frozen_bus" is NULL, because it cannot
have changed since it was tested at the start of the function and so
must be true here.
Signed-off-by: default avatarSam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 63457b14
...@@ -930,7 +930,6 @@ void eeh_handle_normal_event(struct eeh_pe *pe) ...@@ -930,7 +930,6 @@ void eeh_handle_normal_event(struct eeh_pe *pe)
* all removed devices correctly to avoid access * all removed devices correctly to avoid access
* the their PCI config any more. * the their PCI config any more.
*/ */
if (frozen_bus) {
if (pe->type & EEH_PE_VF) { if (pe->type & EEH_PE_VF) {
eeh_pe_dev_traverse(pe, eeh_rmv_device, NULL); eeh_pe_dev_traverse(pe, eeh_rmv_device, NULL);
eeh_pe_dev_mode_mark(pe, EEH_DEV_REMOVED); eeh_pe_dev_mode_mark(pe, EEH_DEV_REMOVED);
...@@ -944,7 +943,6 @@ void eeh_handle_normal_event(struct eeh_pe *pe) ...@@ -944,7 +943,6 @@ void eeh_handle_normal_event(struct eeh_pe *pe)
/* The passed PE should no longer be used */ /* The passed PE should no longer be used */
return; return;
} }
}
final: final:
eeh_pe_state_clear(pe, EEH_PE_RECOVERING); eeh_pe_state_clear(pe, EEH_PE_RECOVERING);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment