OSDN Git Service

powerpc/pseries/hotplug-memory: Change rc variable to bool
authorLeonardo Bras <leonardo@linux.ibm.com>
Fri, 2 Aug 2019 13:39:15 +0000 (10:39 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:10 +0000 (16:58 +1100)
commitb948aaaf3e39cc475e45fea727638f191a5cb1b4
treef227b5f9ea45be5c662351001ac362cca354e4d6
parentf5817191b0a3257d9963a574c53d085d9f443e7d
powerpc/pseries/hotplug-memory: Change rc variable to bool

Changes the return variable to bool (as the return value) and
avoids doing a ternary operation before returning.

Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190802133914.30413-1-leonardo@linux.ibm.com
arch/powerpc/platforms/pseries/hotplug-memory.c