powerpc/eeh: Factor out common code eeh_reset_device()
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Wed, 21 Mar 2018 02:06:40 +0000 (13:06 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:45:14 +0000 (23:45 +1100)
commit54048cf876615285363f6f6c21014bf2462ebe0d
tree73bbea88178db69adfc2b79b127402cf542c9b3f
parentd3136d771292b87cfc217a528aa50acec0b2b84f
powerpc/eeh: Factor out common code eeh_reset_device()

The caller will always pass NULL for 'rmv_data' when
'eeh_aware_driver' is true, so the first two calls to
eeh_pe_dev_traverse() can be combined without changing behaviour as
can the two arms of the final 'if' block.

This should not change behaviour.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c