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)
commit121ca8e56551e4c52fdb37e8771eddc9ef44c880
tree3817852d0982a4272d46c1622e3fbb0a375f0622
parent884143f60c89acf8f2d06de4113d5e3057791701
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