powerpc/fadump: improve fadump_reserve_mem()
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:50:41 +0000 (20:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:43 +0000 (00:04 +1000)
commit6abec12c65e8870d8cafe154a86240fe0bcdd4f7
tree08d370a6c4c798ea243b843a8dd165d7815222c7
parent41df5928721ff4b5f83767cd5e8b77862fc62bb3
powerpc/fadump: improve fadump_reserve_mem()

Some code clean-up like using minimal assignments and updating printk
messages. Also, add an 'error_out' label for handling error cleanup
at one place.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821343485.5656.10202857091553646948.stgit@hbathini.in.ibm.com
arch/powerpc/kernel/fadump.c