]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: hibernate: remove gotos as they are not needed
authorPavel Tatashin <pasha.tatashin@soleen.com>
Wed, 4 Dec 2019 15:59:20 +0000 (10:59 -0500)
committerWill Deacon <will@kernel.org>
Wed, 8 Jan 2020 16:32:55 +0000 (16:32 +0000)
commit0a070c4dd0ca4843bb8f5ddb3b331d9a062b3d0a
treeb9cc161e48a503c4e78867abe9c34ee8a1077975
parente6255b8046e3f1467321bf34a9b23de6e609f1c7
arm64: hibernate: remove gotos as they are not needed

Usually, gotos are used to handle cleanup after exception, but in case of
create_safe_exec_page and swsusp_arch_resume there are no clean-ups. So,
simply return the errors directly.

Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hibernate.c