]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Remove always-true tests in eeh_reset_device()
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Mon, 19 Mar 2018 02:49:04 +0000 (13:49 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:45:00 +0000 (23:45 +1100)
commitbe8ce68a9da9fb8e5a7fd361fa4fb6f97a71550b
tree51d438f8c984d511db2afe1a44a7d0110497c541
parent94ba80d254672ff9c2fa72daaaa2b913bc9dbbf3
powerpc/eeh: Remove always-true tests in eeh_reset_device()

eeh_reset_device() tests the value of 'bus' more than once but the
only caller, eeh_handle_normal_device() does this test itself and will
never pass NULL.

So, remove the dead tests.

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