]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kexec_file: Refactor setup_dtb() to consolidate error checking
authorWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 15:02:45 +0000 (15:02 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 15:16:58 +0000 (15:16 +0000)
commiteb46878b089f4d626998579955d7344fe7dc828f
tree3817852d0982a4272d46c1622e3fbb0a375f0622
parente0a1e7478b594f0a1baa2c376b65589f836341bb
arm64: kexec_file: Refactor setup_dtb() to consolidate error checking

setup_dtb() is a little difficult to read. This is largely because it
duplicates the FDT -> Linux errno conversion for every intermediate
return value, but also because of silly cosmetic things like naming
and formatting.

Given that this is all brand new, refactor the function to get us off on
the right foot.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/machine_kexec_file.c