powerpc/powernv/opal-dump : Handles opal_dump_info properly
authorMukesh Ojha <mukesh02@linux.vnet.ibm.com>
Mon, 20 Feb 2017 13:22:10 +0000 (18:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:03:23 +0000 (22:03 +1000)
commita5bbe8fd29f7e42fe5d26371adbad97c76884355
tree7c902f2d744b75b5ab5c156b913c881051188ddb
parentedd00b830731be468fd3caf7f9154d13228f4a93
powerpc/powernv/opal-dump : Handles opal_dump_info properly

Moves the return value check of 'opal_dump_info' to a proper place which
was previously unnecessarily filling all the dump info even on failure.

Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-dump.c