]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Small refactor of eeh_handle_normal_event()
authorDaniel Axtens <dja@axtens.net>
Fri, 15 Oct 2021 07:06:27 +0000 (18:06 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:52 +0000 (16:43 +0100)
commit4a1aca34bc6b64d79ba752963538fbba7eb7dc26
tree7779e37051513a9c147667a0250f2417214de4ec
parent5f4ba164f9905a2059a1aa7336aa68c850298387
powerpc/eeh: Small refactor of eeh_handle_normal_event()

[ Upstream commit 331d1c9b56f02cf089cab3538a1b14b1c4fd5869 ]

The control flow of eeh_handle_normal_event() is a bit tricky.

Break out one of the error handling paths - rather than be in an else
block, we'll make it part of the regular body of the function and put a
'goto out;' in the true limb of the if.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211015070628.1331635-1-dja@axtens.net
Stable-dep-of: 9efcdaac36e1 ("powerpc/eeh: Set channel state after notifying the drivers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/eeh_driver.c